I tried sudo yum update but it just keeps java "1.7.0_75". I need 1.8 for it to work with another application but can't figure out how to upgrade it.
Do I need to manually install it somehow? There's not much information on this on the internet as far as I can see.
Specs:
java version "1.7.0_75"
OpenJDK Runtime Environment (amzn-2.5.4.0.53.amzn1-x86_64 u75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
When I try update now:
[ec2-________]$ sudo yum update
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
No packages marked for update
Is there anything else I need to do?
Thanks.
To remove java 1.7 and install java 1.8:
Install Java Runtime 1.8
or if you need a java compiler and other developer tools:
Then use the alternatives command to make Java 1.8 the default.
If you prefer you can remove Java 1.7 with
but remove it after you installed Java 1.8 or the aws-apitools will also be removed as they depend on Java on being installed.