Install Oracle Java (JDK)6/7/8 in ubuntu 13.04
|
by kutech company
|
visitor counter : 14665
|
DOWNLOADS
|
Data Sheet
|
User's Manual
|
Outline
|
Mail To
|
Oracle Java has been removed from the official Ubuntu repositories due to the new Java license. If you need to use Oracle Java instead of OpenJDK in Ubuntu, this simple tutorial will show you how to install Oracle Java (JDK which includs JRE) 6 / 7 / 8 in Ubuntu 13.04 using the ppa repository.
|
Installing the JDK
Remove OpenJDK first if installed by this command:
#sudo apt-get purge openjdk*
Then add the Webupd8 Team PPA repository and then reload the packages:
#sudo add-apt-repository ppa:webupd8team/java
#sudo apt-get update
Now, install Oracle Java:
#sudo apt-get install oracle-java6-installer
Or, change the number 7 to 6 or 8 to install Java6 or Java8.
After installation, run command to check if it was successful:
#java -version
It should return something like this:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode)
To remove Oracle Java, run this command in terminal
#sudo apt-get remove oracle-java7-installer
It should return something like this:
#sudo apt-get remove oracle-java6-installer
http://ubuntuguide.net/install-oracle-java-jdk-6-7-8-in-ubuntu-13-04
|
|