Trying to create custom image with jlink with all the jmods available in the JDK11 fails.
steps to reproduce
1. download extract jdk11 windows build
2. go to jdk-11\bin
3. jlink.exe -p ..\jmods\ --add-modules "ALL THE MODULES present in ..\jmods comma seperated" --ouput .\CustomJDK11
Expected : CustomJDK11 image should be created
Actual :
Error: Module jdk.jlink.jmod not found
Even though the module 'jdk.jlink.jmod' is present in the ..\jmods\ directory.
Tried removing the 'jdk.jlink.jmod' from the --add-modules, then it fails with
Error: Module jdk.jstatd.jmod not found
the error goes on and on with other modules . Tried removing these below listed modules in the list
jdk.jlink.jmod,
jdk.jstatd.jmod,
jdk.security.jgss.jmod,
jdk.javadoc.jmod,
jdk.jcmd.jmod,
java.desktop.jmod,
jdk.internal.vm.ci.jmod,
java.scripting.jmod,
jdk.crypto.cryptoki.jmod,
jdk.naming.dns.jmod,
jdk.security.auth.jmod,
jdk.hotspot.agent.jmod,
jdk.accessibility.jmod,
jdk.localedata.jmod,
But no success in generating the custom image.
steps to reproduce
1. download extract jdk11 windows build
2. go to jdk-11\bin
3. jlink.exe -p ..\jmods\ --add-modules "ALL THE MODULES present in ..\jmods comma seperated" --ouput .\CustomJDK11
Expected : CustomJDK11 image should be created
Actual :
Error: Module jdk.jlink.jmod not found
Even though the module 'jdk.jlink.jmod' is present in the ..\jmods\ directory.
Tried removing the 'jdk.jlink.jmod' from the --add-modules, then it fails with
Error: Module jdk.jstatd.jmod not found
the error goes on and on with other modules . Tried removing these below listed modules in the list
jdk.jlink.jmod,
jdk.jstatd.jmod,
jdk.security.jgss.jmod,
jdk.javadoc.jmod,
jdk.jcmd.jmod,
java.desktop.jmod,
jdk.internal.vm.ci.jmod,
java.scripting.jmod,
jdk.crypto.cryptoki.jmod,
jdk.naming.dns.jmod,
jdk.security.auth.jmod,
jdk.hotspot.agent.jmod,
jdk.accessibility.jmod,
jdk.localedata.jmod,
But no success in generating the custom image.