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

  • 0
    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

  • 1 Answers
  • 0
    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

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!