From: Thomas Schmitt <[email protected]>
To: [email protected]
Sent: Wednesday, 6 April 2016, 9:59
Subject: Re: How do I set different JAVA_HOME for different users?
I have most of my personal preferences in ~/.bashrc .Stuff like:
export LC_COLLATE="C"
export HISTCONTROL="ignoredups"
export PS1='\u@\h:\W> '
So i guess it would be a good place to set
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
Have a nice day :)
Thomas
Thanks for that!
Adding
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"to the end of ~/.bashrc
fixed it.The internet seemed to be convinced that it had to be done via systemd
user.conf.