Powershell 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 the console via java command - jar filename.jar gives an 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 JAVA_HOME environment variable, PATH.
Powershell also does not see javac -version, mvn.Java Felix Bennett, Feb 23, 2019 -
Could not 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"?Anonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!