3 ms·
I think the best way to do this is to just bundle a JRE in your application .zip?! You don't need an app to do that!
by bullen 6y ago
I think the best way to do this is to just bundle a JRE in your application .zip?! You don't need an app to do that!
- pjmlp 6y agoJRE has been replaced by jlink on Java 9. Each application is supposed to create their customised runtime.
- erik_seaberg 6y agoDebian and Fedora instructions for packaging Java apps do not recommend jlink. Modules only pay off for an embedded system with just one app. I've been out of the Windows world for years, but there appears to be an MSI story to require a JVM.
- pjmlp 6y agoGood luck building a JRE yourself then, given that is not the way modern Java works.
- erik_seaberg 6y agoDeclaring a dependency on https://packages.debian.org/buster/default-jre https://packages.debian.org/buster/default-jre makes apt install the LTS release. A lot of comments here are actually advocating static linking, which is kind of a shock—I don’t see a good reason for it at all.
- pjmlp 6y agoExcept it is up to Debian to keep that JRE running, as it is no longer part of default Java builds. All the JRE after Java 9 have to be maintained by the community, if they care to still use them. JRE don't work on the days of App Stores, even Google has finally grasped that ART cannot be part of the OS and has taken the steps to ship it out of band on Android 12.