|
|
|
|
|
by madduci
2107 days ago
|
|
Yes, since Java 9: it is called "jlink" and it's shipped with the OpenJDK. It assumes you have modularized jars. An alternative is the GraalVM, which can compile the code as a C++ binary or a shared application, using LLVM as backend.
If you work with Webservices (especially JavaEE), you might also want to have a look at Quarkus, which also uses GraalVM to create single binary executables |
|
With jlink/jpackage you either ship an installer or a zip file.