As described in Proguard's troubleshooting page:
In MacOS X, the run-time classes may be in a different place than on most other platforms. You'll then have to adapt your configuration, replacing the path
<java.home>/lib/rt.jar
by<java.home>/../Classes/classes.jar
.
So for instance, on non-Mac environments you might have the following in your Proguard config:
-libraryjars <java.home>/lib/rt.jar
But for Mac environments you would point to classes.jar
.
This is fine if this is only ever developed on a Mac, but if this code is checked into version control and shared by developers on multiple OSs and also on a build server running a different OS, it needs to be more flexible.
Is there a way to configure this in Proguard to work no matter what OS it runs on, without requiring users of the code to make filesystem changes?