ns-usbloader/misc/windows/HOWTO_JRE.md
Dmitry Isaenko c408f70b79
Some checks failed
continuous-integration/drone/push Build is failing
Switch to Java 11. Add win installer
2023-02-08 01:15:30 +03:00

415 B

How to prepare JRE from JDK to bundle it with application

  1. Run java --list-modules
  2. Update resulting list s/@.*\n/,/g
  3. Run jlink --no-header-files --no-man-pages --compress=2 --add-modules !!!_PASTE_RESULT_HERE_!!! --output jre
  4. 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'