我不断遇到同样的问题:发生了JNI错误。

huangapple 未分类评论45阅读模式
英文:

I keep getting the same problem: JNI error has occurred

问题

在我的个人电脑(Windows 10)上编译和运行Java程序时,我一直遇到相同的问题:

错误:发生了JNI错误,请检查您的安装并重试。
线程“main”中的异常java.lang.UnsupportedClassVersionError:euler1已由更高版本的Java运行时(类文件版本58.0)编译,此版本的Java运行时仅识别高达52.0的类文件版本。

我已经安装了以下内容:
javac -version
javac 14.0.1

java -version
java版本“1.8.0_261”

希望有人能帮助我。

英文:

I keep getting the same problem on my pc (win10) when trying to compile and run a java programme:

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: euler1 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 installed the following:
javac -version
javac 14.0.1

java -version
java version "1.8.0_261"

I hope someone can help me.

huangapple
  • 本文由 发表于 2020年7月23日 19:23:37
  • 转载请务必保留本文链接:https://java.coder-hub.com/63053070.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定