I have a linux mint 19x and if I do:
echo $JAVA_HOME >> /usr/lib/jvm/java-8-oracle
I want to change the path to put Java 11, but not in the .bashrc, .profile, /etc/enviroment file, I see my JAVA_HOME defined
I tried to put the JAVA_HOME path in my /etc/environment
JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
Can someone tell me where my JAVA_HOME can be defined, so I can change it well.