Error: A JNI error has occurred, please check your installation and try again 更新Compiler compliance

问题描述:

在执行简单的Java 语句的时候,出现了

Error: A JNI error has occurred, please check your installation and try again

Exception in thread “main” java.lang.UnsupportedClassVersionError: lessons/testValue 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

问题解决:
Package-> Build path-> Configure Build Path-> Java Compiler -> “Compiler compliance level”
从 ‘11’ 更新为‘1.8’

备注
我本地java 版本为 1.8.0.231
在这里插入图片描述


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部