0 votes
1 view
in AWS by (16.7k points)

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?

1 Answer

+1 vote
by (39.6k points)

Depending on the Java version and if you have the terminal access, it will look like this:

sudo apt-get install openjdk-8-jre

...