第一步:window---preferences ---java---installed JREs---add—添加你的JDK

出现错误:you need run build with JDK or have tools.jar on the classpath

  第二步:选中JDK 点击编辑按钮,弹出对话框,添加插件tools.jar和lombok.jar(这两个jar文件只针对个人项目添加的,项目要是不用就不添加)

出现错误:you need run build with JDK or have tools.jar on the classpath

点击Add External JARs....

tools.jar---java自动生成类工具等,开发用,包默认不在eclipse里面,JDK 的安装目录lib下面有这个tools.jar包

  lombok.jar在/.m2/repository/org/projectlombok/lombok/1.16.10/目录下,

第三步:编辑eclipse或sts安装目录下的eclipse.ini或sts.ini文件,新增jdk的javaw.exe配置.

出现错误:you need run build with JDK or have tools.jar on the classpath

 

第四步:项目右键---preferences ---java Build Path---Libraries---查看编辑  ,重启。

相关文章:

  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
猜你喜欢
  • 2021-09-28
  • 2021-12-01
  • 2021-10-29
  • 2021-11-06
  • 2022-12-23
  • 2022-02-19
  • 2021-12-01
相关资源
相似解决方案