How to install Java Runtime and JDK in Ubuntu Linux

advertisement logo

 

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: , , , , ,

Bookmark this article These icons link to social bookmarking sites where readers can share and discover new web pages.
  • digg
  • YahooMyWeb
  • NewsVine
  • Netvouz
  • Reddit
  • Spurl
  • Furl
  • del.icio.us
  • StumbleUpon
  • Technorati
  • TwitThis

Keep updated with this website! : Subscribe to your email

Recommended Reading

4 smashing comments for this post.

  1. The Malaysian Blogosphere » Blog Archive » MyPapit: How to install Java Runtime and JDK in Ubuntu Linux Said:

    [...] Original post by mypapit and software by Elliott Back Bookmark to: [...]

  2. James Said:

    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?

  3. dolphin Said:

    hello,
    how to install java on amd64 gutsy ?

  4. magnifico Said:

    ei… thanks for the info about the installation… I’ll add you to my links… thanks again…

Leave a Comment

Subscribe by email

Enter your Email