On 2015-09-23, the BeanShell repository moved from https://code.google.com/a/apache-extras.org/p/beanshell/ to its new home on https://github.com/beanshell/beanshell/ as Google Code has been discontinued.
BeanShell had previously moved to Apache Extras from http://beanshell.org/, which remains available for older versions.
BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. BeanShell dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures like those in Perl and JavaScript.
You can use BeanShell interactively for Java experimentation and debugging as well as to extend your applications in new ways. Scripting Java lends itself to a wide variety of applications including rapid prototyping, user scripting extension, rules engines, configuration, testing, dynamic deployment, embedded systems, and even Java education.
BeanShell is small and embeddable, so you can call BeanShell from your Java applications to execute Java code dynamically at run-time or to provide extensibility in your applications. Alternatively, you can use standalone BeanShell scripts to manipulate Java applications; working with Java objects and APIs dynamically. Since BeanShell is written in Java and runs in the same VM as your application, you can freely pass references to "live" objects into scripts and return them as results.
BeanShell is licensed under the Apache License, version 2.0. See LICENSE for details, and the NOTICE file for required attributions.
Earlier versions of BeanShell (2.0b4 and earlier) were distributed under GNU Lesser General Public License (LGPL) and Sun Public License (SPL).
The source code releases can be downloaded from Bintray or GitHub....
Latest source code:
Beanshell releases are published to Maven Central. To use Beanshell with Maven, add to to your pom.xml:
<dependencies>
<dependency>
<groupId>org.apache-extras.beanshell</groupId>
<artifactId>bsh</artifactId>
<version>2.0b6</version>
</dependency>
</dependencies>
You can also download the bsh.jar binary from Bintray.
To execute the Beanshell user interface, either double-click the JAR file, or run it with:
java -jar bsh-2.0b6.jar
You will need Java 5 or later installed.
You are encouraged to raise a Github Pull Request with any suggested improvements and fixes!
You can also raise an issue for any questions or bugs. Remember, your stacktrace might be particularly useful for others!
For full documentation, see the BeanShell user manual and the FAQ for frequently asked questions.
$ claude mcp add beanshell \
-- python -m otcore.mcp_server <graph>