Add Java Home to a User
If an application needs to use java in a process it will be running and that process is based on something that must auto-restart on boot it is a good idea to set up the variable $JAVA_HOME.
1) Go to the users home directory:
cd ~
2) Open the file /home/username/.bashrc:
vim .bashrc
3) And add the following line:
export JAVA_HOME=”/path/to/java/home”
Comments are currently closed.