英文:
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.
专注分享java语言的经验与见解,让所有开发者获益!
评论