Skip to content

Commit ccda520

Browse files
committed
remove java.ext.dirs on startup (fixes #4608)
1 parent 68a0188 commit ccda520

5 files changed

Lines changed: 18 additions & 7 deletions

File tree

build/build.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@
559559
<!-- avoid conflicts with JNA DLLs already in the path -->
560560
<option value="-Djna.nosys=true" />
561561

562+
<!-- deal with jokers who install JOGL, ANTLR, etc system-wide -->
563+
<option value="-Djava.ext.dirs=lib/ext" />
564+
562565
<option value="-Dapple.laf.useScreenMenuBar=true" />
563566
<option value="-Dcom.apple.macos.use-file-dialog-packages=true" />
564567
<option value="-Dcom.apple.macos.useScreenMenuBar=true" />

build/linux/processing

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ cmd_name='processing-java'
104104

105105
if [ $current_name = $cmd_name ]
106106
then
107-
java -Djna.nosys=true -Xmx256m processing.mode.java.Commander "$@"
107+
java -Djna.nosys=true -Djava.ext.dirs=lib/ext -Xmx256m processing.mode.java.Commander "$@"
108108
exit $?
109109
else
110110
# Start Processing in the same directory as this script
@@ -115,5 +115,5 @@ else
115115
fi
116116
cd "$APPDIR"
117117

118-
java -splash:lib/about-1x.png -Djna.nosys=true -Xmx256m processing.app.Base "$SKETCH" &
118+
java -splash:lib/about-1x.png -Djna.nosys=true -Djava.ext.dirs=lib/ext -Xmx256m processing.app.Base "$SKETCH" &
119119
fi

build/windows/config-cmd.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
<jre>
3131
<path>java</path>
32+
<!-- Deal with jokers who install JOGL, ANTLR, etc system-wide -->
33+
<opt>-Djava.ext.dirs=lib/ext</opt>
3234
<!-- Prevent a user-installed JNA from conflicting with our version.
3335
https://github.com/processing/processing/issues/2239 -->
3436
<opt>-Djna.nosys=true</opt>

build/windows/config.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
</classPath>
2727
<jre>
2828
<path>java</path>
29+
<!-- Deal with jokers who install JOGL, ANTLR, etc system-wide -->
30+
<opt>-Djava.ext.dirs=lib/ext</opt>
2931
<!-- https://github.com/processing/processing/issues/2239 -->
3032
<opt>-Djna.nosys=true</opt>
3133
<!-- Because nosys is set to true, the DLL in the current working

todo.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
0252 (3.2)
2-
_ Move general PDE code out of JavaMode and into general base classes
3-
_ https://github.com/processing/processing/issues/4606
2+
X Move general PDE code out of JavaMode and into general base classes
3+
X https://github.com/processing/processing/issues/4606
44
X change PdeInputHandler constructor
5-
_ check whether this breaks other Modes before releasing
5+
X check whether this breaks other Modes before releasing
6+
X added extra constructor to keep things working
7+
X Processing .jar files in CLASSPATH can cause startup crash
8+
X https://github.com/processing/processing/issues/4128
9+
X Remove java.ext.dirs on startup to avoid conflicts and startup errors
10+
X https://github.com/processing/processing/issues/4608
11+
612
_ modify line number color when no lines extend that far?
713
_ https://github.com/processing/processing/pull/4560
814
_ text gutter doesn't seem to be hidpi
915
X or is it b/c screen not quite 2x? (nope)
1016
_ swap out the fonts?
11-
_ Processing .jar files in CLASSPATH can cause startup crash
12-
_ https://github.com/processing/processing/issues/4128
1317

1418
_ Help Menu disabled on OS X
1519
_ https://github.com/processing/processing/issues/43503#issuecomment-237715947

0 commit comments

Comments
 (0)