之前用的JDK12替换了1.8后出现如下错误提示

错误提示:java.lang.UnsupportedClassVersionError: com/spring/demo05/Demo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only reco

 

 是编译的class文件对应的jdk版本与当前jdk版本不匹配。

解决方案

把项目右键--javaCompiler--版本改成当前的版本(1.8)

错误提示:java.lang.UnsupportedClassVersionError: com/spring/demo05/Demo has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only reco

 

相关文章:

  • 2022-01-03
  • 2021-12-06
  • 2021-09-21
  • 2021-09-19
  • 2022-12-23
  • 2021-12-18
  • 2021-09-14
  • 2021-10-16
猜你喜欢
  • 2021-07-03
  • 2021-06-23
  • 2021-11-28
  • 2021-09-12
  • 2021-09-12
  • 2021-09-28
相关资源
相似解决方案