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

后端 未结 7 1106
醉梦人生
醉梦人生 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 16:46

    This is similar to Bruno's answer above; however, I am not a big fan of symlinking the absolute path. Here is how I handle the symlinks:

    cd /Library/Java/JavaVirtualMachines//Contents/Home
    sudo ln -s lib Classes
    
    cd lib/
    sudo ln -s tools.jar classes.jar
    

    That makes it easier then symlinking absolute paths.

提交回复
热议问题