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

Written on: 2015-06-01 21:53:17 -0600

Last edited: 2025-03-07 00:02:10 UTC