Installing Java on Ubuntu Amazon Aws [Duplicate]

Installing Java on Ubuntu Amazon Aws [Duplicate]

I want to install java in an Ubuntu server in the Amazon aws. How Can I find the model number of that server so I can install the right version of java?

0

1 Answer

Run lsb_release -a to find the version of Ubuntu you are running.

If you are running 16.04:

sudo apt-get update
sudo apt-get install openjdk-8-jdk

If you are running 14.04:

sudo apt-get update
sudo apt-get install openjdk-7-jdk
0
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.