R
R
Ramiltete2020-11-04 14:24:31
Java
Ramiltete, 2020-11-04 14:24:31

Errors in powershell console Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.?

Can't output fail.jar to console via java - jar filename.jar gives error:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: Main 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 52.0
Reinstalled jdk, added environment variable JAVA_HOME, PATH.
Also Powershell does not see javac -version, mvn.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-11-04
@Ramiltete

Failed to translate "Main 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 52.0"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question