-
Bug
-
Resolution: Fixed
-
P3
-
9
-
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.