Ubuntu:Installing Sun Java

Note to self:

Ubuntu no longer includes the Java repos in their default builds.

To install Java on a recent Ubuntu machine (9.04 and up I believe), use the following command line commands to install it.

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update sudo apt-get install sun-java6-jdk

Category:Linux Category:Ubuntu