jlink packages current platform's binaries
问题 I am trying to build cross-platform archives of an application built using Java 11 and packaged with jlink . For the cross-platform packaging I am basing my build on this answer. I have managed to make my Gradle build download the target platform's JDK and invoke jlink with the appropriate jmods folder, however the target image always includes the binaries and JRE structure of the host platform (in my case Windows, meaning the generated bin folder always includes DLLs and Windows executables)