Wednesday, 8 January 2014

Unknown

How to install JDK 7 in Ubuntu 13.04




In case you need Oracle Java instead of OpenJDK in Ubuntu, here's how you can install it via a PPA:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Note that the PPA doesn't host Oracle Java 7 as this not allowed by the new Java license (which is also the reason why it has been removed from the official Ubuntu repositories in the first place). The package in the PPA simply downloads Oracle Java JDK 7 from its official website and installs it on your machine.

To test if the installation is completed successfully, execute:

java -version

If for some reasons, the Java installed is not version 1.7.x, execute the following command to force an update:

sudo update-java-alternatives -s java-7-oracle

To automatically set up the Java 7 environment variables, install the following package:
sudo apt-get install oracle-java7-set-default

Unknown

About Blog No Baap -

Since 2016 BlogNoBaap has been bringing you the very best in all types of web resources. Posted daily, and delivered straight to your inbox each morning.

Subscribe to this Blog via Email :