Surprised to find that Sun Java packages were missing in Ubuntu Maverick (10.10). The new Ubuntu release uses OpenJDK by default. I needed sun-java6-jdk package to use a eclipse IDE development Android ADT plugin.
Found the solution in this StackOverFlow thread How to install Sun JDK on Ubuntu 10.10 “Maverick meerkat”?
# Add this line to your /etc/apt/sources.list file
deb http://archive.canonical.com/ubuntu maverick partner
sudo apt-get update
sudo apt-get install sun-java6-jdk
# Get rid of OpenJDK
sudo apt-get remove openjdk-6-jdk openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
Very useful, thanks!
ReplyDeleteWas helpful
ReplyDeleteYou forget add "deb" before link.
ReplyDeleteThanks for pointing that out! Fixed!
ReplyDeleteThaaaaaaaaaaks
ReplyDeleteSaved me ... so cheers to you
ReplyDeleteGot me going quickly, thanks!
ReplyDeletePerfect! What an useful tip!
ReplyDeleteThanks!
Very usefull for quick switch to the sun java products and some others (canonical partners).
ReplyDeleteThanks!! a lot worked for me!!
ReplyDeleteThank you, this was really brief and useful. I wish one day we could find solutions for every problem like this one :D.
ReplyDeletevery good, thank you....the Ubuntu community is the best.
ReplyDeletedoes open jdk has any issue with eclipse? why u go for sun jdk? Can you point out the reason?
ReplyDeleteIt will be useful for all..!
Thanks!
Android ADT plugin for Eclipse needs Sun JDK.
ReplyDeletethanks...was really helpful
ReplyDeletei can't download it
ReplyDeleteSujarwe, Can you give more information about your problem.
ReplyDeleteWhat errors are you getting?
Just tried your method, but got this error message from the terminal:
ReplyDeleteReading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
sun-java6-jdk : Depends: sun-java6-bin (>= 6.26-2maverick1) but it is not going to be installed
E: Broken packages
Any ideas what could have caused this?
redaxe90 can't help you. Perhaps you can report a broken packages bug.
ReplyDelete