dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is /home

idea gradle项目在build的时候,会报如下错误:

Errors occurred while build effective model from C:\Users\Maxtropy\.gradle\caches\modules-2\files-2.1\org.crashub\crash.shell\1.3.2\887bc9980d3f6a39f0adc79caf5b655e3761d1a\crash.shell-1.3.2.pom:
    'dependencies.dependency.systemPath' for com.sun:tools:jar must specify an absolute path but is /home/tclement/plf-release-tools/tools/jdk1.7.0_67/jre/../lib/tools.jar in org.crashub:crash.shell:1.3.2

是因为在这个路径下

C:\Users\Maxtropy\.gradle\caches\modules-2\files-2.1\org.crashub\crash.shell\1.3.2\887bc9980d3f6a39f0adc79caf5b655e3761d1a\crash.shell-1.3.2.pom

的文件中,定义了相对路径

 /home/tclement/plf-release-tools/tools/jdk1.7.0_67/jre/../lib/tools.jar

把它改成绝对路径就解决了

C:/jdk/lib/tools.jar

 

你可能感兴趣的:(java)