Running ProGuard on OS X: Where is Apple's equivalent to the rt.jar?

后端 未结 5 1957
说谎
说谎 2020-12-15 03:58

I\'m running ProGuard to shrink my jar file. One of the parameters it needs is the system\'s runtime jar. This is at $JAVA_HOME/lib/rt.jar on Sun distributions,

5条回答
  •  星月不相逢
    2020-12-15 04:42

    For me the reason was I had JDK 13 installed. After installing JDK 1.8 the file appeared in the location expected by ProGuard. You can run sudo find /Library -name rt.jar to find the exact path to the rt.jar after installing JDK 1.8

提交回复
热议问题