java:Mac 上的 Proguard - 路径
大家好,java 开发人员,
我正在尝试混淆我的 java 代码,并且 proguard 要求我
默认引用一个 java 库,该库是 rt.jar,但 rt.jar 不存在于我的 java 目录中!
我尝试引用 dt.jar,但它似乎没有解决问题
任何想法?
Hello fellow java developers,
I'm trying to obfuscate my java code, and proguard requires that i reference a java library
by default that library is rt.jar, but rt.jar does not exist in my java directory!
I tried referencing dt.jar, but it doesn't seem to have fixed the problem
any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
至少在Mac OS X 下,运行时不再打包在rt.jar 下(而是称为classes.jar)。
您可以通过在详细模式下使用 VM 运行任何 Java 程序并查找 java.lang.String 类来找到运行时 jar 的位置:
Under Mac OS X at least, the runtime is no longer packaged under rt.jar (instead it's called classes.jar).
You can find the location of the runtime jar by running any Java program with the VM in verbose mode and grepping for the java.lang.String class:
rt.jar 是 java 运行时。它包含您在代码中调用的所有 java.* 好东西。您可以在 Java 的安装目录中找到它。
编辑: OS X 上显然不存在,请查找classes.jar 而不是
@Apple -1,因为比较困难
rt.jar is the java runtime. It contains all the java.* goodies that you call throughout your code. You'll find it in the directory where Java is installed.
Edit: Doesn't exist on OS X apparently, look for classes.jar instead
@Apple -1 for being difficult