[英]How to do I fix a JNI issue for Jar file?
I am using Intellij IDE and I managed to produce a JAR file, but when I try running it won't work.我正在使用 Intellij IDE 并且我设法生成了一个 JAR 文件,但是当我尝试运行它时它不起作用。 I have tried to reinstall the newest JDK but that hasn't worked either.我试图重新安装最新的 JDK,但也没有用。 This is what I am trying to run:这就是我想要运行的:
java -jar Ex4.jar
This is what I keep getting:这就是我不断得到的:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: Ex4/Ex4 has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I have managed to solve my issue:我设法解决了我的问题:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.