How to upgrade JAVA version in AWS Linux instance

How to upgrade JAVA version in AWS Linux instance


On AWS EC2 instance(Linux) if you ever want to upgrade JAVA version to latest ,you can do it using following command.

Once the instance (EC2 linux) is up and running , connect remotely and logged in.

1. Check the version of JAVA using :
 -> java -version

2. Uninstall the Older version using : [in my case its java-1.7.0-openjdk ]
-> sudo yum remove java-1.7.0-openjdk

3. Install the Newer version of JAVA using :
-> sudo yum install java-1.8.0


To make sure its installed correctly - check the version again using command given in Step1 above.


Thats it...

No comments:

Post a Comment

πŸ””Announcement : Visit the new website/blog πŸ””

πŸ””πŸ””πŸ”” Announcement :  Visit the new website/blog πŸ””πŸ””πŸ”” Dear readers, Thank you for reading my blog. If you could have used the little info...