Setting JAVA_HOME for all users in linux

by rajesh 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

Tagged in:

1171
like
0
dislike
0
mail
flag

You must LOGIN to add comments