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]
Keep updated with the latest posts, be a part of over 1,000 subscribers! :
Subscribe to your email
You might also want to read...
- Install Java 5 SDK and Java JRE in Ubuntu
- vrms – check your Ubuntu for Non-free packages (Virtual Richard M Stallman)
- How to switch between different Java (JVM) in Ubuntu and Debian GNU Linux
- The OpenCD 4.0 has been released
- Installing Java 2 SDK on Debian GNU/Linux and Ubuntu
- Sun has Open Source Java under GNU/GPL
- Does anyone here still uses Java Applets?


May 29th, 2007 at 2:35 pm
[...] Original post by mypapit and software by Elliott Back Bookmark to: [...]
May 29th, 2007 at 7:59 pm
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?
February 17th, 2008 at 4:38 pm
hello,
how to install java on amd64 gutsy ?
March 8th, 2008 at 10:47 am
ei… thanks for the info about the installation… I’ll add you to my links… thanks again…
February 6th, 2009 at 6:03 pm
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?!
August 13th, 2009 at 6:04 pm
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?