Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (19.1k points)

I was wondering if anyone knows if it will be possible for me to install Java 8 on an EC2 instance. My application is packed as a fat jar with embedded jetty, so the Java 8 runtime alone should be sufficient.

I'm not too familiar with Linux, and I saw that they only had Java 7 support on the default AMI. Is there a simple command I can run to update to Java 8?

1 Answer

0 votes
by (44.4k points)

Check your current version of Java

java -version

install Java 1.8

sudo yum install java-1.8.0

change the Java version

sudo alternatives --config java

Related questions

Want to get 50% Hike on your Salary?

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

0 votes
1 answer
asked Jul 11, 2019 in AWS by Amyra (12.9k points)
0 votes
1 answer

Browse Categories