Wednesday, October 3, 2012

How to Install Oracle Java 7 (JDK and JRE) in Ubuntu via PPA Repository

Author: Adrian Nowak, 9:45 PM, Wednesday, October 3, 2012

Category: , , , , , , , , , , ,

Licence does't allow to host Oracle Java JDK in PPA Repository so some time ago it disappeared from default Ubuntu repositories. Still, we can install it pretty easy using simple console app. All we need is few minutes.

In Ubuntu 12.04, 11.10, 11.04 and 10.04, you can install Oracle Java JDK 7 simply by typing into console:

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

All we have to do after that is choose "ok" and then "yes" in the console:

Oracle Java 7 JDK. Fot.
At the end we can check our Java version by running into console following command:

java -version
It should look like this:

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)

blog comments powered by Disqus

Post a Comment

Recent comments

Popular threads

See also..