Hacker News new | ask | show | jobs
by U1F984 1124 days ago
A Java Runtime for Hello world is just 32 MB: https://adoptium.net/blog/2021/10/jlink-to-produce-own-runti...
2 comments

A full Java runtime is 95MB. (Smaller than the JDK size of 312MB.)

> The jlinked runtime using the above command is about 95Mb.

Simple programs -- like Hello World -- can indeed exclude certain parts of the JRE using jdeps, for a smaller size.

You can actually get it smaller if you compile your own JDK and look at the compressed size. I got it down to 7mb at one point.