欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

解决java: 程序包com.sun.tools.javac.util不存在 错误

程序员文章站 2024-02-10 16:35:40
...

启动项目报错

Error:(3,32) java: 程序包com.sun.tools.javac.util不存在

网上大多都是Project Structure导入jar包,但是我用此方法还是没有效果

最后解决方法为

在maven 配置的plugin中jdk版本configuration中添加如下代码,编译通过

<compilerArguments>      
 <bootclasspath>${java.home}/lib/rt.jar${path.separator}${java.home}/lib/jce.jar${path.separator}${java.home}/../lib/tools.jar</bootclasspath>
</compilerArguments>

解决java: 程序包com.sun.tools.javac.util不存在 错误

相关标签: bug解决 java