4 ms·
Bundling a JDK with the app is the officially sanctioned way to ship Java apps since Java 9, so for over a decade now.
by mike_hearn 3mo ago
Bundling a JDK with the app is the officially sanctioned way to ship Java apps since Java 9, so for over a decade now.
- Hendrikto 3mo agoThe JDK is too big for every app to do that, imo.
- pjmlp 3mo agoWhich is why there are linking and packaging tools for trimming fat that isn't needed, or even AOT compile the application.
- well_ackshually 3mo agoYou mean a JRE, because the whole JDK contains a bunch of things you're never going to need. Mind you, a default JRE redistribution makes your app at least 100+MB. Using jdeps to strip out unneeded things is a good idea if you want it to get down to 25 ish MBs.
- jamesfinlayson 3mo agoJREs haven't been a thing in like a decade I thought.
- well_ackshually 3mo agoYeah, saying JRE is a bit of a shortcut since you're supposed to jlink & jpackage & jdance &jpray to get a slimmed down JVM released with your app, but it's closer to what would be a JRE than a full JDK