r/java • • Jan 02 '25

How Java's Executable Assembly Jars Work

https://mill-build.org/blog/5-executable-jars.html
64 Upvotes

42 comments sorted by

View all comments

Show parent comment

2

u/Efficient-Poem-4186 Jan 04 '25

I'm on Windows and only use jpackage(not jlink) much like the instructions here. That creates an installer (which has the advantage that the application can be easily uninstalled later on). Assuming the installed executable is standalone it could be run on a different computer with the same OS. As the article says, a 3rd party, OS-specific packaging tool is required.

1

u/NotABot1235 Jan 04 '25

Thank you! I'll look into this as well.