JLINK(1) JDK Commands JLINK(1) (NAME) jlink - (SYNOPSIS) jlink [options] --module-path modulepath --add-modules module [, module...] options . jlink . modulepath jlink . JAR JMOD (exploded modules) . module . jlink . (DESCRIPTION) jlink . : . JLINK (JLINK OPTIONS) --add-modules mod [, mod...] mod . . --bind-services . -c ={0|1|2} --compress={0|1|2} : o 0: o 1: o 2: ZIP --disable-plugin pluginname . jlink . --endian {little|big} (byte order) . . -h --help . --ignore-signing-information JAR . JAR . --launcher command=module --launcher command=module/main (launcher) ( (/) ). --limit-modules mod [, mod...] mod ( ) --add-modules . --list-plugins jlink . -p --module-path modulepath . $JAVA_HOME/jmods . java.base JDK . java.base jlink $JAVA_HOME/jmods . --no-header-files . --no-man-pages man . --output path . --save-opts filename jlink . --suggest-providers [name, ...] . --version . @filename . . . . (#) () ..PP jlink : #Wed Dec 07 00:40:19 EST 2016 --module-path mlib --add-modules com.greetings --output greetingsapp JLINK (JLINK PLUG-INS) : . pattern-list : o glob-pattern o glob:glob-pattern o regex:regex-pattern o @filename o filename . jlink --list-plugins . compress --compress={0|1|2}[:filter=pattern-list] . o : o : o : ZIP pattern-list . include-locales --include-locales=langtag[,langtag]* (locales) langtag BCP 47 . RFC 4647 . jdk.localedata . : --add-modules jdk.localedata --include-locales=en,ja,*-IN order-resources --order-resources=pattern-list . @filename pattern-list . : --order-resources=/module-info.class,@classlist,/java.base/java/lang/ --strip-debug (debug) . JLINK (JLINK EXAMPLES) greetingsapp . com.greetings mlib (link) . jlink --module-path mlib --add-modules com.greetings --output greetingsapp greetingsapp : greetingsapp/bin/java --list-modules com.greetings java.base@11 java.logging@11 org.astro@1.0 compressedrt (locale) : jlink --add-modules jdk.localedata --strip-debug --compress=2 --include-locales=fr --output compressedrt compressedrt fr_rt : jlink --add-modules jdk.localedata --include-locales=fr --output fr_rt du -sh ./compressedrt ./fr_rt 23M ./compressedrt 36M ./fr_rt java.security.Provider : jlink --suggest-providers java.security.Provider Suggested providers: java.naming provides java.security.Provider used by java.base java.security.jgss provides java.security.Provider used by java.base java.security.sasl provides java.security.Provider used by java.base java.smartcardio provides java.security.Provider used by java.base java.xml.crypto provides java.security.Provider used by java.base jdk.crypto.cryptoki provides java.security.Provider used by java.base jdk.crypto.ec provides java.security.Provider used by java.base jdk.crypto.mscapi provides java.security.Provider used by java.base jdk.security.jgss provides java.security.Provider used by java.base mybuild java.naming jdk.crypto.cryptoki . (module path) : jlink --add-modules java.naming,jdk.crypto.cryptoki --output mybuild greetingsapp (service binding) Configuration.resolveAndBind . jlink --module-path mlib --add-modules com.greetings --output greetingsapp --bind-services greetingsapp : greetingsapp/bin/java --list-modules com.greetings java.base@11 java.compiler@11 java.datatransfer@11 java.desktop@11 java.logging@11 java.management@11 java.management.rmi@11 java.naming@11 java.prefs@11 java.rmi@11 java.security.jgss@11 java.security.sasl@11 java.smartcardio@11 java.xml@11 java.xml.crypto@11 jdk.accessibility@11 jdk.charsets@11 jdk.compiler@11 jdk.crypto.cryptoki@11 jdk.crypto.ec@11 jdk.crypto.mscapi@11 jdk.internal.opt@11 jdk.jartool@11 jdk.javadoc@11 jdk.jdeps@11 jdk.jfr@11 jdk.jlink@11 jdk.localedata@11 jdk.management@11 jdk.management.jfr@11 jdk.naming.dns@11 jdk.naming.rmi@11 jdk.security.auth@11 jdk.security.jgss@11 jdk.zipfs@11 org.astro@1.0 JDK 17 2021 JLINK(1)