mathisdt/sdb2

Java 9+ / integrated package

Closed this issue · 2 comments

Migrate the software to Java 9 and use jlink to create a custom JRE which can be downloaded as an integrated package (at least for Linux and Windows) so there is no need to install a JRE before the first use anymore.

See https://stackoverflow.com/a/47594270 on how to package for Windows while running a Linux JDK.

See https://github.com/cuba-platform/cuba-cli/blob/master/build.gradle on how to inject "module-info.class" files into dependencies.

This does not work natively because there are still automatic modules, and changing the binaries does not seem right to me. So this is postponed until the libraries support the JPMS.

From commit 267d22f on the packages exist for Linux and Windows: I manually determined which modules of the JDK were needed and built custom JREs with only them.

This can be improved when all dependencies are modularized (which still could take a while) by making jlink find out which modules are necessary.