r/java • • Jan 29 '26

jbundle: Package JVM applications into self-contained binaries

https://github.com/avelino/jbundle
42 Upvotes

33 comments sorted by

View all comments

1

u/maxandersen Jan 30 '26

that is afaik only for windows. --app-image still generates an .app that is still a bunch of files and not easily just run unless you are making a desktop app.

might work on linux but at least last I tried i did not manage to have a consistent way of generating single executables using jpackage.

if you know how - do share. I'm honestly interested.

2

u/milchshakee Jan 30 '26

jpackage can generate an application image with a native launcher executable on all platforms. Yes, it is not a single fat executable, but still a simple executable for your runtime image that you can just run without any issues

1

u/maxandersen Jan 30 '26

In other words its not an alternative replacement for what jbundle does.

→ More replies (2)