fix the library export issues

This commit is contained in:
Ben Fry
2015-09-01 11:45:25 -04:00
parent 9a445c7c67
commit 1824067cd5
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -10025,6 +10025,8 @@ public class PApplet implements PConstants {
// Remove 60fps limit on the JavaFX "pulse" timer
System.setProperty("javafx.animation.fullspeed", "true");
// This doesn't work, need to mess with Info.plist instead
/*
// In an exported application, add the Contents/Java folder to the
// java.library.path, so that native libraries work properly.
// Without this, the library path is only set to Contents/MacOS
@@ -10042,6 +10044,7 @@ public class PApplet implements PConstants {
System.setProperty("java.library.path", libraryPath);
}
}
*/
// Catch any HeadlessException to provide more useful feedback
try {
+2 -1
View File
@@ -60,7 +60,8 @@
<key>JVMOptions</key>
<array>
@@jvm_options_list@@
<string>-Xdock:icon=Contents/Resources/sketch.icns</string>
<string>-Xdock:icon=$APP_ROOT/Contents/Resources/sketch.icns</string>
<string>-Djava.library.path=$APP_ROOT/Contents/Java</string>
<string>-Dapple.laf.useScreenMenuBar=true</string>
<string>-Dcom.apple.macos.use-file-dialog-packages=true</string>
<string>-Dcom.apple.macos.useScreenMenuBar=true</string>