Linux - How to set java home for all users, To set JAVA_HOME for all users
How to set java home for all usersIn general JAVA_HOME is only set for specific users in linux servers, but sometimes there might be situations to set JAVA_HOME PATH for all the users in linux development servers. Below is the simple trick to set the JAVA_HOME PATH for all the users in linux server.
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
/etc/profile has the default system values set in it, where you can HOME_PATH or umask values for all the user.
For setting it only for a specific user,
The topic on Linux - How to set java home for all users is posted by - Math
Hope you have enjoyed, Linux - How to set java home for all usersThanks for your time