The full documentation is available on https://pi4j.com/documentation/buildi...
JBang lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease. By combining it with Pi4J you can get a running Java program to control the GPIOs of a Raspberry Pi with a single Java-file without the need to do any manual dependency installation or compilation.