The official JDK is provided by Oracle but is not provided as default installation by ubuntu
You can install Oracle JDK using apt-get by adding the repositories and then using apt-get command.
To add the repository issue the following commands
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
After adding the repo you have the options to install JDK version using different commands.
For JDK 6 use:
sudo apt-get install oracle-java6-installer
For JDK 7 use:
sudo apt-get install oracle-java7-installer
For JDK 8 use:
sudo apt-get install oracle-java8-installer
Hope this makes it easier to install java without downloading and configuring binaries.
0 Comment(s)