Skip to content

Commit 1824067

Browse files
committed
fix the library export issues
1 parent 9a445c7 commit 1824067

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

core/src/processing/core/PApplet.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10025,6 +10025,8 @@ static public void runSketch(final String[] args,
1002510025
// Remove 60fps limit on the JavaFX "pulse" timer
1002610026
System.setProperty("javafx.animation.fullspeed", "true");
1002710027

10028+
// This doesn't work, need to mess with Info.plist instead
10029+
/*
1002810030
// In an exported application, add the Contents/Java folder to the
1002910031
// java.library.path, so that native libraries work properly.
1003010032
// Without this, the library path is only set to Contents/MacOS
@@ -10042,6 +10044,7 @@ static public void runSketch(final String[] args,
1004210044
System.setProperty("java.library.path", libraryPath);
1004310045
}
1004410046
}
10047+
*/
1004510048

1004610049
// Catch any HeadlessException to provide more useful feedback
1004710050
try {

java/application/Info.plist.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
<key>JVMOptions</key>
6161
<array>
6262
@@jvm_options_list@@
63-
<string>-Xdock:icon=Contents/Resources/sketch.icns</string>
63+
<string>-Xdock:icon=$APP_ROOT/Contents/Resources/sketch.icns</string>
64+
<string>-Djava.library.path=$APP_ROOT/Contents/Java</string>
6465
<string>-Dapple.laf.useScreenMenuBar=true</string>
6566
<string>-Dcom.apple.macos.use-file-dialog-packages=true</string>
6667
<string>-Dcom.apple.macos.useScreenMenuBar=true</string>

0 commit comments

Comments
 (0)