您当前的位置: 首页 >  Java

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

错误:has been compiled by a more recent version of the Java Runtime (class file version 56.0)

柳鲲鹏 发布时间:2020-05-11 13:22:59 ,浏览量:0

  具体错误如下:

java.lang.UnsupportedClassVersionError: com/XXX has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class com.XXX)
	org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3255)

  意思就是编译时使用了56.0版本,执行时的JDK/JRE使用了52.0版本。两个办法:

  • 升级一下JDK。
  • 使用运行的JDK重新编译。
关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0513s