Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
14 lines
681 B
Plaintext
14 lines
681 B
Plaintext
$ 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]
|