Native image cheat sheet

Run a fat JAR with the native image agent:

mkdir -p META-INF/native-image
GRAAL_VM_HOME/java -agentlib:native-image-agent=config-output-dir=META-INF/native-image -jar build/libs/fat-jar.jar

Use the native image configuration to convert the fat JAR to an executable:

GRAAL_VM_HOME/native-image -Djava.awt.headless=false -jar build/libs/fat-jar.jar