com.sun.mirror.* 软件包在 OSX 上去了哪里?
我目前正在尝试编写一个合适的注释处理器。但是我在我的系统上找不到所需的tools.jar。我在 OSX 上,安装了默认的 JDK。哪里可以找到apt相关的类?
I'm currently trying to write an apt annotation processor. I can however not find the required tools.jar on my system. I'm on OSX, having installed the default JDK. Where can i find the apt-related classes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Apple 捆绑的 JVM 中没有tools.jar,这些类只是在classes.jar 中,其中包含其他基本Java 库文件(在我的机器上,此处:
/System/Library/Java/JavaVirtualMachines/1.6 .0.jdk/Contents/Classes/classes.jar
)。There is no tools.jar in the Apple-bundled JVMs, those classes are simply in classes.jar, which contains the other base Java library files (on my machine, here:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar
).不得依赖
com.sun.*
类。它们是内部实现,风险是它们将在下一个版本或不同平台上消失。com.sun.*
classes must not be relied on. They are internal implementation and the risk is they will go away in the next version or on a different platform.