If you’ve recently upgraded to Ubuntu 11.10 and are a developer you may notice some things missing. For one there is no longer an option to install the sun-java6-jdk or JRE from the repositories. Worse they also removed the Netbeans IDE. Apparently this had something to do with licenses but if you’re going to offer MP3 support the least you could do is make software like this available for those who are willing to look for it.
Anyway with that rant out of the way I did manage to find a way to install both.
Install sun-java6-jdk
Following the instructions on this excellent post I was able to successfully install sun-java6-jdk using the following commands:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
There are alternative instructions for installing Java 7 as well.
Install Netbeans
My first attempt at installing both was to head to the official Oracle Java website and download the Netbeans + JDK installer. Unfortunately the installer seems to crash in this version of Ubuntu. However since the above process had installed the JRE I was able to simply grab the Netbeans only installer from Oracle which ended up working surprisingly well. Just remember to run it using sudo if you want other users to be able to use it as well.
Talk about easy. Thank you for putting this together for those of us using SSH. 🙂
I moved to openJDK. Thanks for sharing this info and bring back to sunJDK.
Weird, I got
E: Unable to locate package sun-java6-jre-plugin
when trying to do a get that contained that package name.
I found the only thing that worked was: sudo apt-get install sun-java6-jdk on
on kubuntu 11.10 and it installed all the other packages.
Nice and easy tanks! I’m having tough go of it with loading IE through WINE. I need IE so I can use “Skillsoft”. Any suggestions?
I’m not sure what Skillsoft is but if you need IE on linux you can either use WINE (as you mentioned) or someone ported them with a project called IEs4Linux
this didnt work for me,.,.E:Package ‘sun-java6-jdk’has no installation candidate
thank u so much very usefull commands for installing jdk
As for explanation why java is no longer aviable in ubuntu repositories read: http://lwn.net/Articles/472466/
In short Ubuntu no longer has the rights to distribute java package.
This website was… how do I say it? Relevant!! Finally
I’ve found something which helped me. Kudos!