remove java.class.path when launching code from inside the PDE

This commit is contained in:
Ben Fry
2021-06-26 21:19:16 -04:00
parent ca4d7cc312
commit 8d0a266621
3 changed files with 9 additions and 0 deletions

View File

@@ -308,6 +308,11 @@ public class JavaBuild {
}
}
// Turning this off after 4.0 alpha 5, to see if everything still works.
// Including this classpath is really problematic (many possible conflicts,
// these are classes that won't be available on export, etc etc...)
// Also avoids accidentally hiding other potential classpath bugs.
/*
// Finally, add the regular Java CLASSPATH. This contains everything
// imported by the PDE itself (core.jar, pde.jar, quaqua.jar) which may
// in fact be more of a problem.
@@ -317,6 +322,7 @@ public class JavaBuild {
javaClassPath = javaClassPath.substring(1, javaClassPath.length() - 1);
}
classPath += File.pathSeparator + javaClassPath;
*/
// But make sure that there isn't anything in there that's missing,
// otherwise ECJ will complain and die. For instance, Java 1.7 (or maybe