I just installed Ubuntu and am Java 7u55 (JDK) and am trying to configure JAVA_HOME as an environment variable.
~/.bashrc I added:
# Exports JAVA_HOME=/home/myuser/sandbox/java/7u55/jdk1.7.0_55 export PATH=$PATH:JAVA_HOME
Yet when I close the terminal and open a new shell and type
which java or
java -version Ubuntu doesn't seem to know what I'm talking about (says program
java can be found in one of several packages and prompts me to use
sudo apt-get to install one of them).
What am I doing wrong?