问题描述:

在执行简单的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
Error: A JNI error has occurred, please check your installation and try again 更新Compiler compliance

相关文章:

  • 2022-01-04
  • 2021-12-11
  • 2022-12-23
  • 2021-11-19
  • 2021-05-09
  • 2021-07-27
  • 2021-07-01
猜你喜欢
  • 2021-08-13
  • 2021-10-20
相关资源
相似解决方案