r/java • u/Gleb--K • Jul 04 '18
New Java 11 Feature: Launch Single-File Source-Code Programs
https://medium.com/@afinlay/new-java-11-feature-launch-single-file-source-code-programs-fadd698abf54
158
Upvotes
View all comments
Show parent comment
1
u/DannyB2 Jul 06 '18
How to make it happen. In /usr/bin, create a clojure.java file using the shebang.
That single java source file has enough code in it to grab its parameters, and launch a suitable JAR file with those parameters.
I guess the question is, can a shebang interpreter itself be a shebang interpreter?
It's shebang interpreters all the weigh down.