This week's giveaway is in the Cloud/Virtualization forum. We're giving away four copies of Production-Ready Serverless (Operational Best Practices) and have Yan Cui on-line! See this thread for details.
I dowloaded jdk 11 , actually jdk-11.0.1_windows-x64_bin and installed it. It did not come with jre 11 and I did not see jre 11 at the Oracle download site. Now, I am not able to run codes compiled with jdk 11.
Error: LinkageError occurred while loading main class TradersAndTransactions
java.lang.UnsupportedClassVersionError: TradersAndTransactions has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 54.0
I suppose I am required to install jre 11, but where can I find an authentic copy of jre 11?
They have stopped supplying a separate JRE, but it is included in the JDK anyway. The problem you have got is probably caused by retaining an old (?Java10) version of the JRE in your PATH. That is why you shoiuld always write the Java® PATH entry at the beginning of your PATH.
Please show us your PATH and the results of the following two instructions at the command line/terminal:-
posted 5 months ago
java version "10.0.2" 2018-07-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)