logoalt Hacker News

mike_hearntoday at 8:10 AM2 repliesview on HN

Bundling a JDK with the app is the officially sanctioned way to ship Java apps since Java 9, so for over a decade now.


Replies

Hendriktotoday at 9:17 AM

The JDK is too big for every app to do that, imo.

show 1 reply
well_ackshuallytoday at 9:22 AM

You 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.