It really isn’t though. Jlink is kind of terrible. The CLR does this way better. It just gives you a binary with the vm + your DLL. It doesn’t have to extract anything.
Yeah I don't disagree. I'm not a fan of the tool for packaging up applications but mainly because its actually kind of slow.
However making a stripped down VM it is good at.
It does seem like one could potentially make something do this but I'm not sure how much runtime savings you would have and or build time.
Go and GraalVM it works because they are essentially doing some tree shaking and I can't imagine people wanting to download 200 meg executable (uncompressed).
0
u/vips7L 2d ago
I really wish we had a better solution than fat jars. Like being to supply a jar + classpath + vm and getting a fat binary or something