logoalt Hacker News

vips7Lyesterday at 5:27 PM1 replyview on HN

Has jpackage been updated to create things that are not installers and don't extract themselves into several files?


Replies

voidfuncyesterday at 5:47 PM

You're asking about a fundamentally different thing.

An app bundle (.app, .rpm, .deb, .msi/.exe etc.) are things jpackage can build for you and are a single shippable artifact for a user with a JRE included so they don't need to do that. It's designed to make it easy to ship Java applications around.

If you want a fully statically linked binary you're diving into graalvm and native-image: https://www.graalvm.org/latest/reference-manual/native-image.... This will give you what you want which is basically something you can wget and chmod +x.

show 2 replies