How-to articles, tricks, and solutions about PATH-VARIABLES
How to set JAVA_HOME in Linux for all users
To set the JAVA_HOME environment variable in Linux for all users, you will need to add a line to the /etc/environment file.