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

Cross targeting Windows

XMLWordPrintable

    • b134
    • Not verified


      If jlink is run on Windows to generate a runtime image for another platform then the resulting image is DOA. Ditto if jlink is run on another platform and targets Windows.

      The issue seems to be DefaultImageBuilder determines if the target platform is Windows by looking at the value of os.name but this is the platform that jlink is running on, might be different to the target platform. This code needs to be changed to pick up the OS name from the packaged java.base module.

            sundar Sundararajan Athijegannathan
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: