Answer the question
In order to leave comments, you need to log in
Where can I get JRE for JDK 14?
Can't run compiled java file via command line (cmd), although compilation took place on the same command line.
The command line throws an error that the version of the class was created in an earlier version than the version of my Runtime.
( Exception in thread "main" java.lang.UnsupportedClassVersionError: helloworld has been compiled by a more recent version of the Java Runtime (class file version 58.0), this version of the Java Runtime only recognizes class file versions up to 52.0 ).
I have JDK-14.0.1 installed on Win10, Intellij IDEA 2020.1.2 and Java 8 Update 211 (latest)
Where can I get the runtime version so I can run version 58 classes on the command line?
Answer the question
In order to leave comments, you need to log in
One and two . Or use jlink to build a runnable version of the application that already contains the required JRE.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question