首页 > 基础资料 博客日记

Java 21运行报错Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field ‘com.sun.tools.

2023-11-11 17:58:54基础资料围观255

本篇文章分享Java 21运行报错Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field ‘com.sun.tools.,对你有帮助的话记得收藏一下,看Java资料网收获更多编程知识

再Java21中运行报错
Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field ‘com.sun.tools.javac.tree.JCTree qualid’

解决方法:Lombok和Java21不兼容

<dependency>
	<groupId>org.projectlombok</groupId>
	<artifactId>lombok</artifactId>
	<version>edge-SNAPSHOT</version> <!--这个版本是关键-->
</dependency>
// 必须从这个仓库才能找到【edge-SNAPSHOT】版本
<repositories>
        <repository>
            <id>projectlombok.org</id>
            <url>https://projectlombok.org/edge-releases</url>
        </repository>
    </repositories>

文章来源:https://blog.csdn.net/qq_39304229/article/details/133072078
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:jacktools123@163.com进行投诉反馈,一经查实,立即删除!

标签:

相关文章

本站推荐

标签云