There are two different versions of Commons BSF. These have different APIs.
Thank you for using BSF from the Apache Commons Project
Note: The tar files in the distribution use GNU tar extensions and must be untarred with a GNU compatible version of tar. The version of tar on Solaris and Mac OS X will not work with these files
Do not download from www.apache.org. Please use a mirror site to help us save apache.org bandwidth. Go here to find your nearest mirror.
Many of the files have been digitally signed using GnuPG. If so, there will be an accompanying file.asc signature file in the same directory as the file (binaries/ or source/). The signing keys can be found in the distribution directory at http://www.apache.org/dist/commons/KEYS.
Always download the KEYS file directly from the Apache site, never from a mirror site.
Always test available signatures, e.g., $ pgpk -a KEYS $ pgpv bsf-bin-2.4.0.tar.gz.asc or, $ pgp -ka KEYS $ pgp bsf-bin-2.4.0.tar.gz.asc or, $ gpg --import KEYS $ gpg --verify bsf-bin-2.4.0.tar.gz.asc