Proguard on MacOSX
While executing proguard (via maven2) on MacOSX Snow Leopard, I’ve got the following error:
[proguard] Error: Can't read [/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/rt.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 and renamed to classes.jar. To fix the issue simply 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 -sf ../../Classes/classes.jar rt.jar
1 Comment
Post a comment


Thank you! I had that exact problem and got it fixed with this.