diff --git a/core/src/processing/core/PApplet.java b/core/src/processing/core/PApplet.java
index 57f2a9f03..8bd74e391 100644
--- a/core/src/processing/core/PApplet.java
+++ b/core/src/processing/core/PApplet.java
@@ -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 {
diff --git a/java/application/Info.plist.tmpl b/java/application/Info.plist.tmpl
index 9cc224c08..9c0d7ac7a 100644
--- a/java/application/Info.plist.tmpl
+++ b/java/application/Info.plist.tmpl
@@ -60,7 +60,8 @@
JVMOptions
@@jvm_options_list@@
- -Xdock:icon=Contents/Resources/sketch.icns
+ -Xdock:icon=$APP_ROOT/Contents/Resources/sketch.icns
+ -Djava.library.path=$APP_ROOT/Contents/Java
-Dapple.laf.useScreenMenuBar=true
-Dcom.apple.macos.use-file-dialog-packages=true
-Dcom.apple.macos.useScreenMenuBar=true