开发者社区> 问答> 正文

本地idea启动,一直报错 Could not initialize class com.sun.o

Could not initialize class com.sun.org.apache.xml.internal.serializer.Encodings

jdk版本 jdk1.8.0_331 然后maven一刷新 就会Could not initialize class com.sun.org.apache.xml.internal.serializer.Encodings 父级 'com.alibaba.otter:canal.admin:1.1.5-SNAPSHOT' 有问题

提问41.png

现在main分支的jdk版本是需要11的嘛?

com/intellij/lang/properties/charset/Native2AsciiCharsetProvider 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

原提问者GitHub用户poo0054

展开
收起
白夜行fighting 2023-04-25 21:21:16 1331 0
2 条回答
写回答
取消 提交回答
  • 我把这个删掉就好使了

    image.png

    2023-07-05 17:37:46
    赞同 展开评论 打赏
  • 找到一个解决办法,亲测 2022.2 也可以正常使用了

    https://youtrack.jetbrains.com/issue/IDEA-290474/Unable-to-import-Maven-project-javalangUnsupportedClassVersionError-comintellijlangpropertiescharsetNative2AsciiCharsetProvider#focus=Comments-27-5872553.0-0

    原回答者GitHub用户whhe

    2023-04-26 18:03:00
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
蚂蚁金服高级开发工程师萧恺:IDEA 插件开发入门教程 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载