Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Java On Ubuntu Server [closed]

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. :)

like image 660
Henry Harris Avatar asked Jul 27 '12 17:07

Henry Harris


People also ask

Can Java be installed offline?

Download and InstallYou do not need to remain connected to the Internet during the installation. The file can also be copied to a computer that is not connected to the Internet. Click on Windows Offline. Click Save to download the file to your local system.


1 Answers

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
like image 86
dangowans Avatar answered Oct 02 '22 16:10

dangowans