Compatability and Versions
BeanShell Compatability and Versions
BeanShell 3.x (currently in development on the project's main branch)
targets Java 8 at runtime, and building it from source requires JDK 8
or newer.
As of BeanShell 2.1.0 the 2.x branch requires a minimum of Java 6 to run,
for backwards compatibility purposes. Earlier BeanShell releases (1.3.x and
2.0 beta releases through 2.0b5) supported Java versions back to 1.1.x, with
certain features only available in later versions:
- Java 1.1 Basic BeanShell Interpreter. If the javax.swing package is
supplied in the classpath then the JDK1.2 features below become available.
- Java 1.2 Swing based GUI Desktop
is available. All AWT and Swing event listeners are supported by bsh scripted
objects.
- Java 1.3 Full language support. Scripted objects can implement
any Java interface types and even listeners.
Note that the basic syntax of BeanShell remains the same on all versions of
Java. This includes "Java 5.0" style syntax such as the enhanced for-loop,
auto-boxing, etc. These features are part of the BeanShell language syntax and
do not depend on the hosting Java VM.