问题描述:
在执行简单的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