Posts

Showing posts from March, 2012
Proguard on the Mac...In trying to do a maven build on OS X which includes the proguard plugin for obfuscation we ran into an issue. Three jar files which are included in the runtime library in the Sun, I mean Oracle, Java version are not found. The solution we chose was to create three symbolic links like this (from JAVA_HOME/lib): sudo ln -s ../../Classes/classes.jar rt.jarsudo ln -s ../../Classes/jsse.jar .sudo ln -s ../../Classes/charsets.jar . If you don't know where your JAVA_HOME is, run this command: /usr/libexec/java_home
I have been playing with JavaFX in NetBeans a bit lately. When I tried to run an app without the development environment I was presented with an (ugly) message which said I needed to install the JavaFX runtime. I was not able to find instructions on how to do this quickly so I thought I would post my solution.
JavaFX 2.x runtime on OS XGet JavaFX 2.x from Oracle if you don't already have it handy (my current version is installed in /opt/javafx-sdk2.1.0-beta)Find "JAVA_HOME" - this can be done using this command: /usr/libexec/java_homeMy JAVA_HOME is /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/HomeCopy the JavaFX runtime files to the JAVA_HOME/lib/endorsed directoryGiven my settings after changing to JAVA_HOME I used this command: sudo cp /opt/javafx-sdk2.1.0-beta/rt/lib/* lib/endorsed