On Lubuntu 18.04, I though I am using Java 10, because $ javac -version javac 10.0.2 $ java -version openjdk version '10.0.2' 2018-07-17 OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4) OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode) But I am not sure, because I seem to use Java 11. I am confused.
I'm trying to install 1:1.7.0.65-2.5.1.2.el6_5 version of OpenJDK by following this stackexchange answer, but I'm not able to specify the exact version number like
yum says package not found. Is this due to hyphens in the package name?
How can I force yum to install this specific version of Open JDK 1.7
gives
Community♦
coderpluscoderplus
2 Answers
This is not due to hyphens in the package name - what you're trying to do is exactly how it's supposed to work. Yum is having problems either because of the colon in the version you're specifying, or because the version you're specifying isn't available in any of the repositories you have configured on the system. Do you see that specific version of OpenJDK available when you do a
JohnJohnyum list
?12k1 gold badge21 silver badges31 bronze badges
Kevdog7772,12213 gold badges34 silver badges61 bronze badges
LinuxdechlefLinuxdechlef