Five modules built with plain javac/java/jdeps/jlink on Temurin 25.0.5.1. Sources, broken/ cases, run.sh and captured transcripts in output/. README row added. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b4XrpfdpsacrvqnrBM
11 lines
722 B
Plaintext
11 lines
722 B
Plaintext
$ ls "$JDK_HOME" | tr '\n' ' '
|
|
NOTICE bin conf include legal lib man release
|
|
$ jlink --module-path build/mods --add-modules com.acme.app --bind-services --launcher acme=com.acme.app/com.acme.app.Main --strip-debug --no-header-files --no-man-pages --output build/image-nojmods
|
|
Error: This JDK does not contain packaged modules and cannot be used to create another image with the jdk.jlink module
|
|
[exit code 1]
|
|
|
|
$ jlink --module-path build/mods --add-modules com.acme.app,com.acme.formal --launcher acme=com.acme.app/com.acme.app.Main --strip-debug --no-header-files --no-man-pages --output build/image-nojmods2 && build/image-nojmods2/bin/acme services
|
|
providers found: 1
|
|
Greeting[text=Good day, Asha., formatter=formal]
|
|
|