// first, compile A to the TMP directory
File A_java = new File(testSrc, "A.java");
compile("-d", TMP.getPath(), A_java.getPath());
// now compile B, which references A, // with TMP on classpath and tmp on bootclasspath
File B_java = new File(testSrc, "B.java");
compile("-source", "8", "-target", "8", // can't use -Xbootclasspath/p after 8 "-classpath", TMP.getPath(), "-Xbootclasspath/p:" + TMP.getPath().toLowerCase(), "-d", ".",
B_java.getPath());
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.