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:
co-authored by
Claude Sonnet 5.5
parent
7c677a39d2
commit
ddc3ec9d90
@@ -0,0 +1,37 @@
|
||||
$ jbang https://ankurm.com/wp-content/uploads/2026/12/Hello.java Remote
|
||||
[jbang] https://ankurm.com/wp-content/uploads/2026/12/Hello.java is not from a trusted source thus not running it automatically.
|
||||
|
||||
If you trust the url to be safe to run you can do one of the following
|
||||
|
||||
(1) Trust once: Add no trust, only allow access to this URL for the duration of this run
|
||||
(2) Trust limited url in future: https://ankurm.com/wp-content/uploads/2026/12/
|
||||
(0) Cancel
|
||||
|
||||
[jbang] Type in your choice and hit enter. Will automatically select option (0) after 30 seconds.
|
||||
[jbang] Timeout reached, selecting option (0)
|
||||
[jbang] [ERROR] https://ankurm.com/wp-content/uploads/2026/12/Hello.java is not from a trusted source and user did not confirm trust thus aborting.
|
||||
If you trust the url to be safe to run are here a few suggestions:
|
||||
Limited trust:
|
||||
jbang trust add https://ankurm.com/wp-content/uploads/2026/12/
|
||||
Trust all subdomains:
|
||||
jbang trust add *.ankurm.com
|
||||
Trust all sources (WARNING! disables url protection):
|
||||
jbang trust add *
|
||||
|
||||
For more control edit ~/.jbang/trusted-sources.json
|
||||
|
||||
[jbang] Run with --verbose for more details. The --verbose must be placed before the jbang command. I.e. jbang --verbose run [...]
|
||||
[exit status: 10]
|
||||
|
||||
$ jbang trust add https://ankurm.com/wp-content/uploads/
|
||||
[jbang] Trusting permanently: [https://ankurm.com/wp-content/uploads/]
|
||||
|
||||
$ jbang https://ankurm.com/wp-content/uploads/2026/12/Hello.java Remote
|
||||
[jbang] Building jar for Hello.java...
|
||||
Hello, Remote!
|
||||
Running on Java 25 (Eclipse Adoptium)
|
||||
|
||||
$ grep -v '^//' $JBANG_DIR/trusted-sources.json
|
||||
[
|
||||
"https://ankurm.com/wp-content/uploads/"
|
||||
]
|
||||
Reference in New Issue
Block a user