jbang

Create, edit and run self-contained source-only Java programs

brewmacoslinux
Try with needOr install directly
Source

About

Tool to create, edit and run self-contained source-only Java programs

Commands

jbang

Examples

Run a Java file directly without compilation$ jbang HelloWorld.java
Create a new jbang script from template$ jbang init myapp.java
Run a jbang script with dependencies$ jbang script.java --arg1 value1