码迷,mamicode.com
首页 > 编程语言 > 详细

java-spring 错误 Unsupported class file major version 57

时间:2020-02-23 14:59:58      阅读:803      评论:0      收藏:0      [点我收藏+]

标签:lang   选择   framework   failed   compiler   version   lan   代码   illegal   

环境

ubuntu 18.04 jdk13

错误代码

Caused by: org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn‘t supported yet: file ;

nested exception is java.lang.IllegalArgumentException: Unsupported class file major version 57

解决方法

jdk13暂时不被支持,降级至jdk11,可正常运行

降级方法

  • File->Settings->Build,Execution,Deployment->Compiler->Java Compiler->project bytecode version 选择11

  • File->Project Structure->Project->

    • Porject Sdk 选择11

    • Porject language level 选择11

  • File->Project Structure->Modules->language level 选择11

java-spring 错误 Unsupported class file major version 57

标签:lang   选择   framework   failed   compiler   version   lan   代码   illegal   

原文地址:https://www.cnblogs.com/INnoVationv2/p/12349571.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!