わたしが知らなかったJDK
http://www.atmarkit.co.jp/fjava/column/andoh/andoh43.html:あなたの知らないJDKの便利ツールたち
↑をみて具体的な利用シーンは思い浮かばないけど、「jrunscript」がおもしろそうだな、と。クライアントサイドにて用意したスクリプトをサーバサイドにも流用とか?
$ jrunscript -e "print('hello world')" hello world $ echo "print('hellp world')" > test.js $ jrunscript -f test.js hello world $ jrunscript test.js hello world