[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 .
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 .

本文解决在MacOSX中因Java标准库配置缺失导致Proguard无法读取rt.jar和jsse.jar的问题。通过创建指向classes.jar的符号链接来解决。
3182

被折叠的 条评论
为什么被折叠?



