415 B
415 B
How to prepare JRE from JDK to bundle it with application
- Run
java --list-modules
- Update resulting list s/@.*\n/,/g
- Run
jlink --no-header-files --no-man-pages --compress=2 --add-modules !!!_PASTE_RESULT_HERE_!!! --output jre
- JRE created at folder 'jre
jlink --no-header-files --no-man-pages --compress=2 --add-modules $($(java --list-modules) -join "," -replace "@[0-9].*") --output jre-11'