I'm trying to install Java in Ubuntu 14.04. I had follow a guide (that was sent to me for a work for my thesis) and this is what I made:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Now I have to change the environment variable and, according to the guide, this is the few steps remaining:
sudo update-alternatives --config javafor get the environmnet variable path$JAVA_HOME: sudo nano /etc/environmentJAVA_HOME=/usr/lib/jvm/java-7-oraclesource /etc/environment
the problem is that I'm not sure where I have to write "JAVA_HOME: bla bla". In the Ubuntu shell? And, at the end, source /etc/environment doesn't work.
PATHvariable as well. Check theprofilefile of your shell