Application classpath and tools.jar
mik3hall at gmail.com
Sun Feb 19 16:00:08 PST 2012
On Feb 19, 2012, at 3:37 PM, Claudio Nieder wrote:
>> At runtime, you could find tools.jar relative to the "java.home" system property. Alternately, you could file an enhancement request to the JavaAppLauncher to substitute a $JAVA_HOME variable like the original contributed implementation substituted $JAVAROOT, $APP_PACKAGE, and $USER_HOME.
> Using a substituted variable for the bundle location could result in a JavaAppLauncher which is both simpler and more flexible by moving stuff out of the launcher code into the Info.plist.
> See here an example Info.plist and the modified JavaAppLauncher.m: https://gist.github.com/1865926
> Claudio Nieder, Talweg 6, CH-8610 Uster, Tel +4179 357 6743, www.claudio.ch
Doesn't really address 3rd party jars. As long as the JRE is embedded though you might just be able to $APP_PACKAGE to trace a relative path.
ClassLoad'ing isn't really getting me anywhere so far. I might see if I can get the XCode project working and then try that.
More information about the macosx-port-dev