22 Ekim 2017 Pazar

jlink komutu

add-modules seçeneği
Açıklaması şöyle
--add-modules names the module(s) that you want your runtime image to contain - all of its (their) transitive dependencies are included
self contained uygulama için şöyle yaparız.
jlink
    --module-path $JAVA_HOME/jmods:mods
    --add-modules your.app
    --launcher launch-app=your.app
    --output your-app-image
launcher
Açıklaması şöyle
--launcher is optional, but very handy; it creates an OS-specific launcher (e.g. a .bat on Windows) with the given name (launch-app) that launches the specified module (your.app; in this case assuming the main class is defined for it)
module-path seçeneği
Açıklaması şöyle
--module-path lists the folders that contain modules - this needs to include the platform modules shipped with the JDK you want to use (in $JAVA_HOME/jmods) and your application modules (mods)
module-path seçeneği
Açıklaması şöyle
--module-path lists the folders that contain modules - this needs to include the platform modules shipped with the JDK you want to use (in $JAVA_HOME/jmods) and your application modules (mods)
output seçeneği
Açıklaması şöyle
--output specifies where to create the runtime image

Hiç yorum yok:

Yorum Gönder