mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 11:21:06 +01:00
fixes for java.ext.dirs on Windows (more for #4623)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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\"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user