6 ms·
Has jpackage been updated to create things that are not installers and don't extract themselves into several files?
by vips7L 10mo ago
Has jpackage been updated to create things that are not installers and don't extract themselves into several files?
- voidfunc 10mo agoYou'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/ 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.
- vips7L 10mo agoI'm not asking about a fundamentally different thing. The success of other languages isn't because they produce installers. Have you tried native image for a non-trivial application? I've been using it since it came out; I was the first adopter of native-image for Quarkus on Windows. I even wrote the documentation for it at the time. It is not trivial to use, the compile times are extremely long, and the resources it requires are sometimes more than a developers machine can provide.
- pdntspa 10mo agoEvery time I've tried to get native-image working with anything more than a basic Swing app it has been absolute hell.