Skip to content

Commit 8d0a266

Browse files
committed
remove java.class.path when launching code from inside the PDE
1 parent ca4d7cc commit 8d0a266

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

core/todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ _ mouseButton not set correctly on mouseReleased() with Java2D
66
_ https://github.com/processing/processing4/issues/181
77
_ https://github.com/processing/processing4/pull/188
88

9+
_ put opengl libs for core into platform-specific subfolders?
910

1011
_ setting surface size needs to happen outside draw()
1112
_ surface.setSize() sadness etc

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,11 @@ public String preprocess(File srcFolder,
308308
}
309309
}
310310

311+
// Turning this off after 4.0 alpha 5, to see if everything still works.
312+
// Including this classpath is really problematic (many possible conflicts,
313+
// these are classes that won't be available on export, etc etc...)
314+
// Also avoids accidentally hiding other potential classpath bugs.
315+
/*
311316
// Finally, add the regular Java CLASSPATH. This contains everything
312317
// imported by the PDE itself (core.jar, pde.jar, quaqua.jar) which may
313318
// in fact be more of a problem.
@@ -317,6 +322,7 @@ public String preprocess(File srcFolder,
317322
javaClassPath = javaClassPath.substring(1, javaClassPath.length() - 1);
318323
}
319324
classPath += File.pathSeparator + javaClassPath;
325+
*/
320326

321327
// But make sure that there isn't anything in there that's missing,
322328
// otherwise ECJ will complain and die. For instance, Java 1.7 (or maybe

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
1275 (4.0a6)
2+
X remove java.class.path when launching code from inside the PDE
3+
X should prevent conflicts, avoid papering over other bugs
24

35

46
contribs

0 commit comments

Comments
 (0)