Hacker News new | ask | show | jobs
by benjiweber 4344 days 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+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-interfa...