There are two different versions of Jakarta BSF. These have different APIs.
Thank you for using BSF from the Apache Jakarta 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
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/jakarta/bsf/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