This project shows how to create a custom runtime image of a modular application that uses jnativehook.
Windows
gradlew build jlink jpackage
Linux
./gradlew build jlink jpackage
Windows
build\image\bin\jnativehook-modular-demo.bat
Linux
./build/image/bin/jnativehook-modular-demo
Windows
build\jpackage\jnativehook-modular-demo-1.0.0.msi
Linux
sudo apt-get update && sudo apt install ./build/jpackage/jnativehook-modular-demo_1.0.0-1_amd64.deb
You can also download the packages created by the GitHub Actions.