Hello, I'm here today to show to present the easiest way I've found to install both JRE and JDK version 1.7.xx in Xubuntu 12.04 (I think it works in all 'buntu' 12.04 versions).
So, to start off, you have to add the following repository for your system:
sudo add-apt-repository ppa:webupd8team/java
Then, update all your repositories:
sudo apt-get update
Kicking the installation off:
sudo apt-get install oracle-java7-installer
And finally, exporting $JAVA_HOME and $JDK_HOME to your $PATH environment variable:
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
export JDK_HOME=/usr/lib/jvm/java-7-oracle/
Now, your latest version of Java 7 is up and running, to check if everything went alright, you should check:
java -version
and
javac -version
and see if they point out to the version you've just installed.
So, hope it help you ;)
No comments:
Post a Comment