# Rhino and BSF

## What is BSF?

The Bean Scripting Framework (or BSF) was originally developed by IBM and now published as open source as a project at the Apache Software Foundation. It provides a framework for using a number of scripting languages with Java. Rhino is one of the supported languages.

This framework has been embedded in a number of open source projects, including the XSL processor Xalan and the XML/Java build tool Ant. See Xalan-Java Extensions for more information on adding JavaScript to XSL and the description of the optional Script task in the Apache Ant Manual for using scripting in Ant build files.

## Using BSF with Rhino

If you use BSF 2.3.0 Release candidate 1 (released 2002-11-12) or earlier versions, you have to use Rhino 1.5R2 or Rhino 1.5R3 (see Rhino download page).

If you want to use later releases of Rhino, then as of time of writing, 2004-11-29, you have to either build BSF from Apache's CVS or use pre-built binaries since BSF project has not yet released an official version incorporating all the necessary changes to work with Rhino 1.5R4 or later.

back to top