How to install Java Runtime and JDK in Ubuntu Linux

Installing Java Runtime and JDK has been made easy since Ubuntu Feisty Fawn since multiverse and universe package has been made available by default. This short how to, covers an easy way to install Sun Java environment in your Ubuntu operating system.

Installing Java Runtime

$ sudo apt-get install sun-java6-jre

Installing Java Software Development Kit (JDK)

$ sudo apt-get install sun-java6-jdk

Alternatively you can choose to install previous Sun Java version on your machine by replacing ‘sun-java6’ with ‘sun-java5’ for Java 1.5, or by installing ‘j2sdk1.4’ package for Java 1.4.

That’s all, you should be able to run Java applets using your favorite browser or run Java application by now.

[tags]java,jdk,linux,debian,ubuntu,apt-get[/tags]

6 Replies to “How to install Java Runtime and JDK in Ubuntu Linux”

  1. Hi there,

    Am tying to load java6 jdk and jre as per steps issued above but the installation keeps on stoping on the licence agreement stage. Please help?

  2. thanks,but i have a problem because when i install jdk6 befor netbeans also netbeans yet publish error that you have not install jdk on your systems?!

  3. Hi there, I was at one time a bsd user in the past, but i have now moved towards ubuntu linux. I was wondering if you could inform me how to configure tor on ubuntu feisty. I have used the command apt-get install tor privoxy and have successfully installed it, but then again i am unable to get any result when i type gedit /etc/privoxy/config. It keeps giving me errors. What might be wrong, and how do I correct it?

Comments are closed.