How do you address the issue of a missing tools.jar in a JDK in Mac OS X?

后端 未结 7 1067
醉梦人生
醉梦人生 2020-12-16 16:24

From my searching, I found supporting information here: Java Development Guide for Mac OS X

tools.jar does not exist. Classes usually lo

相关标签:
7条回答
  • 2020-12-16 17:04

    Edit to Bruno's answer which was finally what worked for me after quite a bit of maven trial and error.

    If you are using 1.7 then you should be able to change revision to 1.7. I do not know if this is still a problem in Java 1.7 though.

    sudo sh -c '$(j_home=$(/usr/libexec/java_home -v 1.6) && ln -sf ${j_home}/../Classes/classes.jar ${j_home}/../Classes/tools.jar && ln -sf ${j_home}/../Classes ${j_home}/../lib)'
    
    0 讨论(0)
提交回复
热议问题