Without creating a hard or soft link of a file, how do you set an environment variable for every user after every reboot?
- Update the /etc/environment file so it has this stanza (but replace "JAVA_HOME" with the variable of your choice and replace /usr/bin/java with the path or value of the variable as you desire):
- Save the changes of the file. You are done. Log off as the user for the user you were logged in as to have the changes take effect.
If you want only one user to have the environment variable, see this posting.