Install Oracle Java JDK on Linux Mint

Are you looking on a repository for installing the original Oracle JDK 7 instead of the OpenJDK on your Linux Mint 13/ Ubuntu 12.04 box? Ok, open your terminal and type:

  • sudo add-apt-repository ppa:webupd8team/java 
  • sudo apt-get update 
  • sudo apt-get install oracle-java7-installer 
After the installation finishes, if you wish to see if it was successful, you can run the following command:
  • java -version 
It should return something like this:
  •  java version "1.7.0_04" 
  • Java(TM) SE Runtime Environment (build 1.7.0_04-b20) 
  • Java HotSpot(TM) Server VM (build 23.0-b21, mixed mode) 
If for some reason, the Java version in use is not 1.7.0, you can try to run the following command in order to set the right java version to use:
  • sudo update-java-alternatives -s java-7-oracle

BIIIG Thanks to  Matteo Canato for the information

0 comments:

My Instagram