Table of Contents

About

You can use BeanShell for writing scripts as you would any other shell under many Unixs:

#!/usr/java/bin/java bsh.Interpreter 
print("foo");

Reference