2 ms·
In Java8 you can #!/bin/jjs to start a Nashorn (JavaScript) script running on the JVM. Nashorn has shell extensions that helps you write shell scripts https://
by benjiweber 12y ago
In Java8 you can #!/bin/jjs to start a Nashorn (JavaScript) script running on the JVM.
Nashorn has shell extensions that helps you write shell scripts https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extensions https://wiki.openjdk.java.net/display/Nashorn/Nashorn+extens...
It's also a great way to bootstrap your Java app with some JSON config http://benjiweber.co.uk/blog/2014/05/08/json-to-java-interfaces-with-nashorn/ http://benjiweber.co.uk/blog/2014/05/08/json-to-java-interfa...