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

jlink exclude VM plugin does not fully support cross platform image creation

    XMLWordPrintable

Details

    • b131
    • Not verified

    Description

      Jlink allows users to specify a target set of jmods which could be from a different operating system and architecture than the host which is executing the Jlink command.

      This support mostly works but fails when attempting to select the JVM to be included in the generated image.

      The problem is that the ExcludeVMPlugin is only checking the running application to see what platform it’s running on to formulate the jvm name. It should be checking the target collection of jmods to determine the OS and Architecture.

        private static String jvmlib() {
            String lib = "libjvm.so";
            if (isWindows()) {
                lib = "jvm.dll";
            } else if (isMac()) {
                lib = "libjvm.dylib";
            }
            return lib;
        }

      Attachments

        Issue Links

          Activity

            People

              sundar Sundararajan Athijegannathan
              bobv Bob Vandette (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: