Java beanshell

From wikinotes

beanshell is a commandline program that executes java code within an interpreted environment. It's pretty useful for testing things out.

Documentation

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

Install

sudo pacman -S beanshell

Usage

add jar to environment

export CLASSPATH=$CLASSPATH:/usr/share/java/bsh.jar
# GUI (have not used)
java  bsh.Console

# CLI
java  bsh.Interpreter
java  bsh.Interpreter   file.java   # run file within interpreted environment

NOTE:

I wrote an alias for this 'bsh'