set DYLD_LIBRARY_PATH in PluginServiceLocatorRest.java instead of in the launcher script.  set up the JAVA_HOME envar in the native launcher.