jdeps分析命令
D:\openjdk\jdk-14\bin> jdeps --multi-release 13 -q --print-module-deps --ignore-missing-deps C:\Users\yan\Desktop\app\demo.jar C:\Users\yan\Desktop\app\lib\*.jar
jlink创建runtime
D:\openjdk\jdk-14\bin> jlink --add-modules java.base,java.desktop,java.scripting,jdk.jfr,jdk.unsupported --no-header-files --no-man-pages --compress 2 --output C:\Users\yan\Desktop\app\myjre
jpackage 打包命令
D:\openjdk\jdk-14\bin> .\jpackage --type app-image -i C:\Users\yan\Desktop\app -n myapp --main-jar .\demo.jar --runtime-image C:\Users\yan\Desktop\app\myjre --dest C:\Users\yan\Desktop\app
来源:oschina
链接:https://my.oschina.net/qsyan/blog/3197657