Q:

Installing Java On Ubuntu Server

Does anyone know the process to install java on Ubuntu?
I have my server set up with Amazon in the cloud.
I am looking to run some java servers on my server and quickly came to notice that I needed to install java.
Can someone point me in the right direction with some steps?
I have looked at some websites but in the command line when I enter sudo nano /etc/apt/source.list the file is a new file... I have read there is supposed to be an existing file. Correct?
Thanks in advance. :)

A:

If you have terminal access, depending on the version of Java, you're looking for, it would be something like this.
sudo apt-get install openjdk-6-jre

