Setting JAVA_HOME for all users in linux
by rajesh[ Edit ] 2012-05-08 16:26:57
To set JAVA_HOME for all users in linux:
We can do that by setting the value in /etc/profile
# vim /etc/profile
# export JAVA_HOME=/usr/java/jdk******
# export PATH=$PATH:$JAVA_HOME/bin
For setting it only for a specific user, we can use /home/<username>/.bash_profile