Skip to content

Commit a3f66ab

Browse files
committed
fixes for java.ext.dirs on Windows (more for processing#4623)
1 parent 1ad18a4 commit a3f66ab

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build/windows/config-cmd.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<jre>
3131
<path>java</path>
3232
<!-- Deal with jokers who install JOGL, ANTLR, etc system-wide -->
33-
<opt>-Djava.ext.dirs="%EXEDIR%/java/lib/ext"</opt>
33+
<opt>-Djava.ext.dirs="%EXEDIR%\\java\\lib\\ext"</opt>
3434
<!-- Prevent a user-installed JNA from conflicting with our version.
3535
https://github.com/processing/processing/issues/2239 -->
3636
<opt>-Djna.nosys=true</opt>

build/windows/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<jre>
2828
<path>java</path>
2929
<!-- Deal with jokers who install JOGL, ANTLR, etc system-wide -->
30-
<opt>-Djava.ext.dirs="%EXEDIR%/java/lib/ext"</opt>
30+
<opt>-Djava.ext.dirs="%EXEDIR%\\java\\lib\\ext"</opt>
3131
<!-- https://github.com/processing/processing/issues/2239 -->
3232
<opt>-Djna.nosys=true</opt>
3333
<!-- Because nosys is set to true, the DLL in the current working

java/src/processing/mode/java/JavaBuild.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ protected boolean exportApplication(File destFolder,
960960
PApplet.javaVersionName +
961961
".jdk/Contents/Home/jre/lib/ext");
962962
} else if (exportPlatform == PConstants.WINDOWS) {
963-
runOptions.append("-Djava.ext.dirs=\"%EXEDIR%/java/lib/ext\"");
963+
runOptions.append("-Djava.ext.dirs=\"%EXEDIR%\\java\\lib\\ext\"");
964964
} else if (exportPlatform == PConstants.LINUX) {
965965
runOptions.append("-Djava.ext.dirs=\"$APPDIR/java/lib/ext\"");
966966
}

0 commit comments

Comments
 (0)