GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fixing JDK lookup for Windows (resolves #667) · D-I-R-M/processing4@ecefb96

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java/src/processing/mode/java
    • JavaBuild.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: java/src/processing/mode/java/JavaBuild.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,7 @@ protected boolean exportApplication(File destFolder,
951951

952952
XML config = new XML("launch4jConfig");
953953
config.addChild("headerType").setContent("gui");
954+
//config.addChild("headerType").setContent("console");
954955
config.addChild("dontWrapJar").setContent("true");
955956
config.addChild("downloadUrl").setContent(ExportPrompt.JAVA_DOWNLOAD_URL);
956957

@@ -967,7 +968,12 @@ protected boolean exportApplication(File destFolder,
967968
}
968969
XML jre = config.addChild("jre");
969970
if (embedJava) {
970-
jre.addChild("path").setContent("java");
971+
// also falling back to PATH if the "java" folder is later removed
972+
jre.addChild("path").setContent("java;%PATH%");
973+
} else {
974+
// needed to make OpenJDK work properly
975+
// https://github.com/processing/processing4/issues/667
976+
jre.addChild("path").setContent("%PATH%");
971977
}
972978
jre.addChild("minVersion").setContent(MIN_JAVA_VERSION);
973979
for (String opt : runOptions) {

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.