| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fa2d64a commit cdf88e6
1 file changed
| 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