I successfully - according to the output - "installed" java 1.8.0 on my ec2 instance using:
yum install java-1.8.0-openjdk-devel
However I get the following:
java version "1.7.0_141"
javac 1.8.0_131
Obviously I would like both to reflect the same version.
I'm not familiar with using /etc/alternatives (/java) - how to I set it so that both point to 1.8.0?
Regards
Colin Goldberg
I think I found the answer - please let me know if this not all I need.
I erased java 1.7.0 ie.
Subsequently, I get:
openjdk version "1.8.0_131" OpenJDK Runtime Environment (build 1.8.0_131-b11) OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)
Thanks for reading.
Colin Goldberg
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.