Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8072111

Implement change in extractFlagsFromRuntime

    Details

      Description

      This function uses the Java version string and needs to be rewritten.

      src/main/java/com/oracle/tools/packager/windows/WindowsBundlerParam.java
      178: commandline = "java version \"" + System.getProperty("java.version") + "\"\n”

          public static void extractFlagsFromRuntime(Map<String, ? super Object> params) {
              if (params.containsKey(".runtime.autodetect")) return;
               
              params.put(".runtime.autodetect", "attempted");
              RelativeFileSet runtime = WIN_RUNTIME.fetchFrom(params);
              String commandline;
              if (runtime == null) {
                  //its ok, request to use system JRE
                  //TODO extract from system properties
                  commandline = "java version \"" + System.getProperty("java.version") + "\"\n"
                          + System.getProperty("java.vm.name") + " (" + System.getProperty("java.vm.version") + ", " + System.getProperty("java.vm.info") + ")\n";
              }

        Attachments

          Activity

            People

            • Assignee:
              shemnon Danno Ferrin (Inactive)
              Reporter:
              cbensen Chris Bensen (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: