Learn something new every day
More Info... by email
As a Java interpreter, BeanShell can be used to interpret regular Java syntax, but it also can interpret its own syntax, which can be used to scale Java from a static to a dynamic programming language. BeanShell has been unofficially named Little Java by programmers because it closely resembles the syntax of the Java programming language in many respects. It does, however, add the support of many new features, such as loosely typed variables, in which the variable does not have to be declared first. BeanShell also supports scripted objects as simple method closures and Abstract Windows Toolkit/Swing events handlers.
BeanShell has a website from which it can be downloaded. The website can be located by typing "BeanShell" into any Internet search engine. On this website, users will find many options and can download the BSH package, which includes the core interpreter, the shell commands and the utilities.
Users whose version of Java does not include Swing must add the swingall Java archive (JAR) file to the classpath. Some of the utilities use Swing. After Swing has been set up in the classpath, BeanShell will then work in a console interactive interpreter or graphical interactive interpreter.
BeanShell is an open-source project. It is small and embeddable. BeanShell has been integrated in many applications, including testing, configuration, embedded systems, rules engines, user scripting extension, rapid prototyping, dynamic deployment and even Java education.