Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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
8 years, 1 month ago
7 years, 1 month ago