| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -524,6 +524,7 @@ public String preprocess(File srcFolder, | |||
| 524 | 524 | protected boolean ignorableImport(String pkg) { | |
| 525 | 525 | if (pkg.startsWith("java.")) return true; | |
| 526 | 526 | if (pkg.startsWith("javax.")) return true; | |
| 527 | + if (pkg.startsWith("javafx.")) return true; | ||
| 527 | 528 | ||
| 528 | 529 | if (pkg.startsWith("processing.core.")) return true; | |
| 529 | 530 | if (pkg.startsWith("processing.data.")) return true; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -596,16 +596,31 @@ static private List<String> buildSketchLibraryClassPath(JavaMode mode, | |||
| 596 | 596 | static private List<String> buildJavaRuntimeClassPath() { | |
| 597 | 597 | StringBuilder classPath = new StringBuilder(); | |
| 598 | 598 | ||
| 599 | - // Java runtime | ||
| 600 | - String rtPath = System.getProperty("java.home") + | ||
| 601 | - File.separator + "lib" + File.separator + "rt.jar"; | ||
| 602 | - if (new File(rtPath).exists()) { | ||
| 603 | - classPath.append(File.pathSeparator).append(rtPath); | ||
| 604 | - } else { | ||
| 605 | - rtPath = System.getProperty("java.home") + File.separator + "jre" + | ||
| 599 | + { // Java runtime | ||
| 600 | + String rtPath = System.getProperty("java.home") + | ||
| 606 | 601 | File.separator + "lib" + File.separator + "rt.jar"; | |
| 607 | 602 | if (new File(rtPath).exists()) { | |
| 608 | 603 | classPath.append(File.pathSeparator).append(rtPath); | |
| 604 | + } else { | ||
| 605 | + rtPath = System.getProperty("java.home") + File.separator + "jre" + | ||
| 606 | + File.separator + "lib" + File.separator + "rt.jar"; | ||
| 607 | + if (new File(rtPath).exists()) { | ||
| 608 | + classPath.append(File.pathSeparator).append(rtPath); | ||
| 609 | + } | ||
| 610 | + } | ||
| 611 | + } | ||
| 612 | + | ||
| 613 | + { // JavaFX runtime | ||
| 614 | + String jfxrtPath = System.getProperty("java.home") + | ||
| 615 | + File.separator + "lib" + File.separator + "ext" + File.separator + "jfxrt.jar"; | ||
| 616 | + if (new File(jfxrtPath).exists()) { | ||
| 617 | + classPath.append(File.pathSeparator).append(jfxrtPath); | ||
| 618 | + } else { | ||
| 619 | + jfxrtPath = System.getProperty("java.home") + File.separator + "jre" + | ||
| 620 | + File.separator + "lib" + File.separator + "ext" + File.separator + "jfxrt.jar"; | ||
| 621 | + if (new File(jfxrtPath).exists()) { | ||
| 622 | + classPath.append(File.pathSeparator).append(jfxrtPath); | ||
| 623 | + } | ||
| 609 | 624 | } | |
| 610 | 625 | } | |
| 611 | 626 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments