Merge pull request #2269 from gohai/serial-new

Appbundler: Add Contents/Java to java.library.path for loadLibrary to find .jnilib files
This commit is contained in:
Ben Fry
2014-01-21 20:31:47 -08:00

View File

@@ -185,7 +185,7 @@ int launch(char *commandName) {
*/
// Set the library path
NSString *libraryPath = [NSString stringWithFormat:@"-Djava.library.path=%@/Contents/MacOS", mainBundlePath];
NSString *libraryPath = [NSString stringWithFormat:@"-Djava.library.path=:%@/Contents/Java:%@/Contents/MacOS", mainBundlePath, mainBundlePath];
// Get the VM options
NSArray *options = [infoDictionary objectForKey:@JVM_OPTIONS_KEY];