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]java,jdk,linux,debian,ubuntu,apt-get[/tags]


Share this post

Keep updated with the latest posts, be a part of over 1,000 subscribers! : email iconSubscribe to your email

6 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…

  5. ehsan Said:

    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?!

  6. Sello Said:

    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?

Leave a Comment

Subscribe by email

Enter your Email