Proguard on MacOSX_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > Proguard on MacOSX

Proguard on MacOSX

 2013/10/27 0:45:26  yi_17328214  程序员俱乐部  我要评论(0)
  • 摘要:[proguard]Error:Can'tread[/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/rt.jar](Nosuchfileordirectory)Similarly,youcanalsogetthefollowingerror:[proguard]Error:Can'tread[/System/Library/Java/JavaVirtualMachines/1.6.0
  • 标签:Mac
[proguard] Error: Can't read [/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/rt.jar] (No such file or directory)

Similarly, you can also get the following error:

[proguard] Error: Can't read [/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jsse.jar] (No such file or directory)

That happens because the Java bundled with MacOSX doesn’t provide a standard library configuration, that is the rt.jar has been moved (as well as the jsse.jar library) and even renamed. To fix the issue simply symlink jsse.jar and symlink rt.jar to the corresponding classes.jar file:

localhost:~ root# cd /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/
localhost:lib root# ln -s ../../Classes/classes.jar rt.jar
localhost:lib root# ln -s ../../Classes/jsse.jar .
发表评论
用户名: 匿名