A
A
Artimas2020-06-29 10:35:00
Java
Artimas, 2020-06-29 10:35:00

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

2 answer(s)
S
Sergey Gornostaev, 2020-06-29
@Artimas

One and two . Or use jlink to build a runnable version of the application that already contains the required JRE.

P
pfg21, 2020-06-29
@pfg21

JDK is a java.exe runtime + utilities for compiling sources to jvm java.exe bytecode
run jabka via java.exe inside {jdk_14_install}/bin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question