Add jbang: single-file Java with JBang 0.132.1 on JDK 25 (deps, compact source files, Spring Boot, templates, native)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
This commit is contained in:
Ankur Mhatre
2026-12-01 08:20:46 +05:30
co-authored by Claude Sonnet 5.5
parent 7c677a39d2
commit ddc3ec9d90
34 changed files with 639 additions and 0 deletions
@@ -0,0 +1,13 @@
$ jbang broken/CompactNoJava25.java
[jbang] Downloading JDK 21. Be patient, this can take several minutes...
[jbang] Installing JDK 21...
[jbang] Default JDK set to 21 (21.0.13.1+2-LTS [fixed], 21-jbang, /tmp/tmp.RXxYNQBWOn/cache/jdks/21, [Ga, Jdk]))
[jbang] Building jar for CompactNoJava25.java...
/tmp/work/jbang/broken/CompactNoJava25.java:2: error: unnamed classes are a preview feature and are disabled by default.
void main() {
^
(use --enable-preview to enable unnamed classes)
1 error
[jbang] [ERROR] Error during compile
[jbang] Run with --verbose for more details. The --verbose must be placed before the jbang command. I.e. jbang --verbose run [...]
[exit status: 1]