$ 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]