Cannot install Sun JDK on Ubuntu 10.04
Uncategorized
Add comments
May 302010
Recently, I’ve upgraded to use Ubuntu 10.04. It seems that by default, I can’t just use “sudo apt-get install sun-java6-bin” to download the java package. After doing Google for the solution, I’ve come across a working solution. I need to add apt repository first, before I can download the java package:
sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
sudo apt-get update
NOTE: Be mindful of the double-quotes in case you are doing a copy-paste from the webpage.
Is there a reason why you would wanna install sun-java6-bin over openjdk-6-jdk?
openjdk-6-jdk is available in official Ubuntu repo.
thanks… I didn’t know about that before