I have Ubuntu. I want to install the Sun JDK version 6 using the command line (apt-get). How do I do that. What is the name of the package?
Or is the open JDK version the only option.
I have Ubuntu. I want to install the Sun JDK version 6 using the command line (apt-get). How do I do that. What is the name of the package?
Or is the open JDK version the only option.
Assuming it's Ubuntu 10.04,
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update && sudo apt-get install sun-java6-jdk
should work.
You can install by apt-get:
apt-get install sun-java6-jre sun-java6-jdk