Command-line tool
jbang
brew/jbang
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Tool to create, edit and run self-contained source-only Java programs
At a glance
- Type
- Command-line tool
- Install on
- macOS
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install jbang
Initialize a simple Java class
jbang init path/to/file.java
Initialize a Java class (useful for scripting)
jbang init -t=cli path/to/file.java
Use `jshell` to explore and use a script and any dependencies in a REPL editor
jbang run -i
Related command-line tools
- rcc
Allows you to create, manage, and distribute Python-based self-contained automation packages. - devd
A small, self-contained, command-line-only HTTP server for developers - Azul Zulu JDK 6
Java application launcher. java jdk openjdk zulu - Azul Zulu JDK 7
Java application launcher. java jdk openjdk zulu - Azul Zulu JRE 7
Java application launcher. java jre zulu openjre - Java(TM) SE Development Kit 24
Java application launcher. java jdk jvm jre - Java(TM) SE Development Kit 25
Java application launcher. java jdk jvm jre - Java(TM) SE Development Kit 26
Java application launcher. java jdk jvm jre
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents