Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k 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 (44.4k 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

Related questions

0 votes
1 answer

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
+1 vote
1 answer

Browse Categories

...