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. UbuCentrum.net |
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)
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)