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

3

u/renatoathaydes Jan 02 '25

Listen, I know how to do this. All I am saying is that it won't work for anyone on any OS out-of-the-box, except if explicitly disable the OS's security mechanisms (which I wouldn't advise anyone should do except for programmers who can actually read the code) no matter what you do, and if you think you can notarize and run a jar I'm sorry but you're dreaming. Have you ever seen anyone doing this in the last 10 years?

2

u/wildjokers Jan 02 '25

Did you miss this part of my comment?

These days the preferred mechanism is bundling a runtime with your app with jlink/jpackage.