Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6ZEVHGaYy15HAxRzy
30 lines
777 B
Plaintext
30 lines
777 B
Plaintext
# native-image 25.0.4 2026-07-21
|
|
$ jbang --native Hello.java Native
|
|
[jbang] Building jar for Hello.java...
|
|
[jbang] log: /tmp/jbang18248476024474165891native-image
|
|
Hello, Native!
|
|
Running on Java 25 (Oracle Corporation)
|
|
[wall clock: 154.486s]
|
|
|
|
$ jbang --native Hello.java Native # second run, binary cached
|
|
Hello, Native!
|
|
Running on Java 25 (Oracle Corporation)
|
|
[wall clock: 1.350s]
|
|
|
|
$ ls -la $JBANG_DIR/cache/jars/Hello.java.*/
|
|
7696
|
|
4096 .
|
|
4096 ..
|
|
7866632 Hello.bin
|
|
1895 Hello.jar
|
|
|
|
$ Hello.bin Native # the cached binary, no JBang, no JVM
|
|
Hello, Native!
|
|
Running on Java 25 (Oracle Corporation)
|
|
[wall clock: 0.005s]
|
|
|
|
$ java -cp Hello.jar Hello Native # same program on the JVM
|
|
Hello, Native!
|
|
Running on Java 25 (Oracle Corporation)
|
|
[wall clock: 0.277s]
|