Emmeline's Land 艾玛琳园地
Thursday, 1 March 2012
set a environment variable in CentOS
Example: set $JAVA_HOME on CentOS
# vi ~/.bash_profile
Add the following line to .bash_profile
export JAVA_HOME=/usr/local/jdk1.7.0_2
(your actual location of the jdk)
log out then log back in.
Enter this command on the terminal to test:
echo $JAVA_HOME
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment