Bean Shell

Reference

http://www.beanshell.org/manual/contents.html

Install

Download the jar, put under $JAVA_HOME/jre/lib/ext, start with "java bsh.Console"

Or under ubuntu, just "bsh" - more stable than GUI window, which can freeze...

Using GUI

"File" -> "Workspace Editor", write and test script there with interactive window to inspect the results; use "Evaluate" -> "Evaluate in workspace" to try the script, look at the window launching the bean shell to inspect error messages;

Commands

http://www.beanshell.org/manual/quickstart.html#Useful_BeanShell_Commands

javap(obj) - inspect the object; however, very strange, if the object is a string, will report error;

print(obj) - print the object