Error: A JNI error has occurred, please check your installation and try again发生这种错误,但是查找的jdk和jre的版本是一致的,该怎么解决
你是在 编译的时候报出来的嘛?
你本地安装了几个jdk? 环境配置里配了几个,都检查下,应该是 jdk配置冲突了
在运行代码的时候报错的吗,用的版本多少
Exception in thread “main” java.lang.UnsupportedClassVersionError: helloworld has been compiled by a more recent version of the Java Runtime (class file version 54.0), this version of the Java Runtime only recognizes class file versions up to 52.0
发现为java与javac版本不一致而造成的,更换为一致之后重新编译打包