This page test the capability of BeanShell to run as an applet in an untrusted / secure environment. In this case the BeanShell interpreter is running within the JVM of your web browser and is therefore limited by the applet security policy. Not all features of BeanShell are available in this environment. In particular, applets are not allowed inspect non-public members of objects or to create classloaders. This means that the BeanShell interpreter, when running in an applet, can only access public methods of public APIs and cannot define its own classes. You *can*, on the other hand, create Java interfaces and BeanShell scripted objects.
These applets have been compiled with Java 1.3 and are bundled with the full distribution jar. However, BeanShell supports limited functionality for versions of Java as early as 1.1 and a smaller JAR size can be achieved by distributing only the core components.
BeanShell Demo with Swing Desktop in Frame
BeanShell Demo with Swing Console
BeanShell Demo with simple AWT Console