On Thu, 3 Apr 2025 14:09:58 GMT, Alan Bateman <al...@openjdk.org> wrote:

> Right now, the static-jdk image is a bit strange in that it's a modular 
> run-time image but with all native code compiled into bin/java. In time we 
> hope that jlink will be able to create a static image where everything is in 
> the single executable, so no bin directory (or any directory) for launchers. 

@AlanBateman Related to the topic, I just submitted 
https://github.com/openjdk/leyden/commit/56a9e591d2afcdee7c4f29861486c49f70ef104d
 with experimental change for jlinking hermetic image using a pre-linked static 
launcher executable (when @slowhog's https://github.com/openjdk/leyden/pull/46 
is in place, I'll experiment with collecting the static libs from .jmod and 
performing native linking). The experimental change currently still writes out 
a complete jdk image but only the `lib/modules` (the hermetic executable) is 
needed for runtime execution (e.g. for running simple HelloWorld).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24380#issuecomment-2776759591

Reply via email to