Skip to content

Commit aebd76f

Browse files
committed
2 parents 3bdf7ab + 316fe38 commit aebd76f

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

build/shared/lib/about-1x.png

-477 Bytes
Loading

build/shared/lib/about-2x.png

63 Bytes
Loading

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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\"");

todo.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ X modify ext.dirs for exported apps on Windows
1515
X see if CLASSPATH can be set to screw up p5
1616
X works fine on OS X, couldn't reproduce on Linux
1717
X rewrite Util.listFiles() because it wasn't working properly
18+
X add 2016 to about-1x and about-2x
19+
20+
_ saying "no" to save changes is the same as "cancel" on windows?
1821

1922
mode work
2023
X add template support for Modes
@@ -92,6 +95,8 @@ _ hi-dpi support on Linux
9295
_ https://github.com/processing/processing/issues/4183
9396
_ PDE and sketches are 2x smaller on high-res Windows machines
9497
_ https://github.com/processing/processing/issues/2411
98+
_ System.setProperty("sun.java2d.dpiaware", "false");
99+
_ though that seems broken in Java 8: http://superuser.com/a/1007783
95100

96101
_ Library path mismatch between processing-java and export
97102
_ https://github.com/processing/processing/issues/4493
@@ -123,8 +128,6 @@ _ setting a bad font/size causes a crash on startup
123128
_ https://github.com/processing/processing/issues/4085
124129
o https://github.com/processing/processing/pull/4087
125130

126-
_ add 2016 to about-1x and about-2x
127-
128131

129132
more contribs
130133
_ question about PDE_pt-br instead of PDE_pt

0 commit comments

Comments
 (0)