mac环境eclipse导入jeecgboot报错分析

  • 报错界面
    Project build error: ‘dependencies.dependency.systemPath’ for com.sun:tools:jar must specify an abso
  • 报错问题
    Project build error: ‘dependencies.dependency.systemPath’ for com.sun:tools:jar must specify an abso

Project build error: ‘dependencies.dependency.systemPath’ for
com.sun:tools:jar must specify an absolute path but is
${JAVA_HOME}/lib/tools.jar

意思即为:

项目生成错误:com.sun:tools:jar的“dependencies.dependencies.systemPath”必须指定绝对路径,但为${JAVA_HOME}/lib/tools.jar为相对路径

  • 解决方案
    知道了错误原因,那我们现在就根据提示将相对路径改为绝对路径
  1. 在mac控制台输入/usr/libexec/java_home,找出java_home路径
    Project build error: ‘dependencies.dependency.systemPath’ for com.sun:tools:jar must specify an abso
  2. 将报错那一段的JAVA_HOME替换成刚查出来的路径
    Project build error: ‘dependencies.dependency.systemPath’ for com.sun:tools:jar must specify an abso
    现在项目就不报错了,可正常启动

相关文章:

  • 2021-04-26
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-09-24
  • 2022-01-20
  • 2022-12-23
  • 2021-10-27
猜你喜欢
  • 2021-09-30
  • 2022-12-23
  • 2021-09-18
  • 2021-09-19
  • 2022-12-23
  • 2021-09-29
  • 2021-10-30
相关资源
相似解决方案