fixes for java.ext.dirs on Windows (more for #4623)

This commit is contained in:
Ben Fry
2016-08-19 15:39:02 -04:00
parent ed38bd453f
commit 534ca5d86f
3 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@
<jre>
<path>java</path>
<!-- Deal with jokers who install JOGL, ANTLR, etc system-wide -->
<opt>-Djava.ext.dirs="%EXEDIR%/java/lib/ext"</opt>
<opt>-Djava.ext.dirs="%EXEDIR%\\java\\lib\\ext"</opt>
<!-- Prevent a user-installed JNA from conflicting with our version.
https://github.com/processing/processing/issues/2239 -->
<opt>-Djna.nosys=true</opt>

View File

@@ -27,7 +27,7 @@
<jre>
<path>java</path>
<!-- Deal with jokers who install JOGL, ANTLR, etc system-wide -->
<opt>-Djava.ext.dirs="%EXEDIR%/java/lib/ext"</opt>
<opt>-Djava.ext.dirs="%EXEDIR%\\java\\lib\\ext"</opt>
<!-- https://github.com/processing/processing/issues/2239 -->
<opt>-Djna.nosys=true</opt>
<!-- Because nosys is set to true, the DLL in the current working

View File

@@ -960,7 +960,7 @@ public class JavaBuild {
PApplet.javaVersionName +
".jdk/Contents/Home/jre/lib/ext");
} else if (exportPlatform == PConstants.WINDOWS) {
runOptions.append("-Djava.ext.dirs=\"%EXEDIR%/java/lib/ext\"");
runOptions.append("-Djava.ext.dirs=\"%EXEDIR%\\java\\lib\\ext\"");
} else if (exportPlatform == PConstants.LINUX) {
runOptions.append("-Djava.ext.dirs=\"$APPDIR/java/lib/ext\"");
}