Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I upgrade the java version in a AWS instance to 1.8?

Currently, I have some automation scripts which spins up an instance to do stuff; but it needs java 1.8. The default java version seems to be 1.6. Is there any way in the cloud formation script or instance settings which I can upgrade/set the java version to 1.8?

like image 273
iCodeLikeImDrunk Avatar asked Mar 20 '26 18:03

iCodeLikeImDrunk


1 Answers

install Java 1.8

sudo yum install java-1.8.0

change Java version

sudo alternatives --config java
like image 175
Damith Ganegoda Avatar answered Mar 23 '26 07:03

Damith Ganegoda



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!