I was unable to find any official, working, documentation on the Ubuntu website regarding how to install Java onto Ubuntu. In fact, I read that OpenJDK comes preinstalled with Ubuntu, but if it is I certainly couldn’t find where it was located or how to start it.
The command below will install and configure OpenJDK, a leading open source version of Java.
sudo apt-get install openjdk-6-jdk
I was advised to run the command below, which apparently tells you what is installed in Ubuntu. I did see “openjdk” numerous times in the list, but I couldn’t verify how to start it if it did exist.
apt-cache search jdk