
我发现
tools.jar坐在
/Library/Java/Extensions
我不确定这是否是标准的。
但是,
tools.jar从JDK7 复制
$JAVA_HOME/lib可以
/Library/Java/Extensions解决我所有的问题。
CurrentSDK为
JDK7:
CurrentJDK -> /Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents
正如这里指出的,这是一个坏主意。
我将其更新为指向1.6。尽管这似乎违反直觉,但仍需要使事情正常进行。
/System/Library/frameworks/JavaVM.framework/Versions使用
1.7JDK 的当前列表如下:
lrwxr-xr-x 1 root wheel 10 18 Feb 08:36 1.6.0 -> CurrentJDKlrwxr-xr-x 1 root wheel 10 18 Feb 08:36 1.6 -> CurrentJDKlrwxr-xr-x 1 root wheel 10 18 Feb 08:36 1.5.0 -> CurrentJDKlrwxr-xr-x 1 root wheel 10 18 Feb 08:36 1.5 -> CurrentJDKlrwxr-xr-x 1 root wheel 10 18 Feb 08:36 1.4.2 -> CurrentJDKlrwxr-xr-x 1 root wheel 10 18 Feb 08:36 1.4 -> CurrentJDKdrwxr-xr-x 8 root wheel 272 18 Feb 08:39 Adrwxr-xr-x 11 root wheel 374 18 Feb 08:39 ..lrwxr-xr-x 1 root wheel 1 14 Jun 11:35 Current -> Alrwxr-xr-x 1 root wheel 59 14 Jun 12:31 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contentsdrwxr-xr-x 11 root wheel 374 14 Jun 12:31 .
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)