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
You can install by apt-get:
apt-get install sun-java6-jre sun-java6-jdk
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5 years ago
4 years ago