Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
Set JAVA_HOME / PATH for all users
You need to setup global config in /etc/profile OR /etc/bash.bashrc file for all users.
$ sudo vim /etc/profile
Next setup PATH / JAVA_PATH variables as follows.
export PATH=$PATH:/usr/java/jdk1.11.0_07/bin
Fill in the correct jdk version!
Save & close the file and reload the env.
source /etc/profile
or
./etc/profile
Add Comment
Please, Sign In to add comment