Extract the target/jlink-howto-dist.zip archive somewhere on your disk.
On Linux or other Unix-like systems, you can do this with the following command:
 
unzip -d target/jlink-howto target/jlink-howto-dist.zip
 
 
Inspect the total size of the custom runtime image folder.
On Linux or other Unix-like systems, you can do this with the following command:
 
du -sh target/jlink-howto
 
 
On my machine, the result is 68 MB.
In comparison, the total size of the JDK 11 distribution is 312 MB.
 
It’s time to give the application a try.
On Linux or other Unix-like systems, you can do this with the following command:
 
target/jlink-howto/bin/java --module io.vertx.howtos.jlink/io.vertx.howtos.jlink.CustomLauncher
 
 
Or, you can use the generated server script:
 
target/jlink-howto/bin/server
 
 
You should see something like:
 
Feb 03, 2025 6:48:31 PM io.vertx.howtos.jlink.ServerVerticle lambda$start$1
INFO: HTTP server started on port 8888
Feb 03, 2025 6:48:31 PM io.vertx.launcher.application.VertxApplication
INFO: Succeeded in deploying verticle
 
 
| Note | 
When the launcher script is used, it’s not possible to specify VM options (heap size, remote debugging, etc.) as arguments. 
You can either change the JLINK_VM_OPTIONSvariable in theserverscript or use thejavacommand. 
For example, for remote debugging on Linux or other Unix-like systems: 
target/jlink-howto/bin/java \
  -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 \
  --module io.vertx.howtos.jlink/io.vertx.howtos.jlink.CustomLauncher
 |