File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
java/src/processing/mode/java Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1135,7 +1135,14 @@ protected boolean exportApplication(File destFolder,
11351135 // https://github.com/processing/processing/issues/2239
11361136 runOptions .add ("-Djna.nosys=true" );
11371137 // https://github.com/processing/processing/issues/4608
1138- runOptions .add ("-Djava.ext.dirs=%EXEDIR%/java/lib/ext" );
1138+ if (exportPlatform == PConstants .MACOSX ) {
1139+ runOptions .add ("-Djava.ext.dirs=$APP_ROOT/Contents/PlugIns/jdk" + PApplet .javaVersionName + ".jdk/Contents/Home/jre/lib/ext" );
1140+ } else if (exportPlatform == PConstants .WINDOWS ) {
1141+ runOptions .add ("-Djava.ext.dirs=%EXEDIR%/java/lib/ext" );
1142+ } else if (exportPlatform == PConstants .LINUX ) {
1143+ runOptions .add ("-Djava.ext.dirs=$APPDIR/java/lib/ext" );
1144+ }
1145+
11391146 // https://github.com/processing/processing/issues/2559
11401147 if (exportPlatform == PConstants .WINDOWS ) {
11411148 runOptions .add ("-Djava.library.path=\" %EXEDIR%\\ lib\" " );
You can’t perform that action at this time.
0 commit comments