Proguard, jdk7 and OS X

[INFO] ------------------------------------------------------------------------
[INFO] Building XClient 1.2.34-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ xclient ---
[INFO] Deleting /Users/ags/vcs/paysforblogging/XClient/target
[INFO] 
[INFO] (...)
[INFO] (...)
[INFO] (...)
[INFO] (...)
[INFO] --- android-maven-plugin:3.3.2:proguard (default-proguard) @ xclient ---
[INFO] (...)
[INFO] java.io.IOException: Can't read [/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/Classes/classes.jar] (No such file or directory)

No such? I’m using Oracle JDK, should work. Let’s see.

cd /Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home
cd Classes/: No such file or directory

Ah, ok, seems we’re not going the old OSX way of putting things inside JDK anymore.

mkdir Classes
cd Classes
sudo ln -s ../jre/lib/rt.jar classes.jar
sudo ln -s ../jre/lib/jsse.jar 
sudo ln -s ../jre/lib/jce.jar 
[03:18][ags@ags-mbpro:/Library/Java/JavaVirtualMachines/jdk1.7.0_09.jdk/Contents/Home/Classes]
$ ls -al
total 24
drwxr-xr-x   5 root  wheel  170 Nov  2 17:42 ./
drwxrwxr-x  16 root  wheel  544 Nov  2 17:19 ../
lrwxr-xr-x   1 root  wheel   17 Nov  2 17:38 classes.jar@ -> ../jre/lib/rt.jar
lrwxr-xr-x   1 root  wheel   18 Nov  2 17:42 jce.jar@ -> ../jre/lib/jce.jar
lrwxr-xr-x   1 root  wheel   19 Nov  2 17:40 jsse.jar@ -> ../jre/lib/jsse.jar

And.. works!

Author: ags

bio

1 thought on “Proguard, jdk7 and OS X”

Leave a Reply

Your email address will not be published. Required fields are marked *