Linux For Cynics One user's experiences with Linux


Install Oracle Java 7 in Ubuntu 12.10

Installing Oracle Java 7 in Ubuntu can be difficult to do by hand. The Webupd8 team has provided a very easy installer in the webup8team ppa. All you have to do is add that ppa:

sudo add-apt-repository ppa:webupd8team/java

And install the oracle-java7-installer:

sudo apt-get update
sudo apt-get install oracle-java7-installer

You might encounter a few dialogue boxes that ask you to agree to license terms.

All done!

After that, you should be able to invoke Java on the command line with java, or by right-clicking on a .jar in Nautilus and selecting "Open with Oracle Java 7 Runtime".

For example, to run a jar, called jdiskreport-1.4.0.jar, just right click on it in Nautilus:
Or, in a terminal, type:

java -jar jdiskreport-1.4.0.jar
Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.