Beanshell is a Java scripting language. A Beanshell service in Taverna enables you to write various Java code snippets and execute them as part of your workflows. For users who have never attempted Java programming we recommend the Java tutorial on Sun Microsystem's Web site. There are certain minor differences between the core language described there and the version used by the Beanshell; these are further documented at the Beanshell Web site. The good news is that almost all these differences make it easier to use Beanshell than conventional Java; it is unlikely a typical user would ever encounter them.
Taverna's Local services are implemented as Beanshell scripts, and can be further customized by reconfiguring.
|Table of Contents|
First of all you need to make a decision as to where to install the libraries. We generally recommend installing the
.jnilib files in the same location as the
.jar files (i.e. in
lib in your Taverna home directory), as described in the section Configure dependencies. However, since supporting JNI will require you to modify the Taverna startup scripts, you might want to install them in the
lib directory in the Taverna installation/startup directory instead. Here we will do the Taverna home directory option.
On Mac OS X, a startup script is not used as Taverna is wrapped in an application bundle. A MAC OS X bundle are a kind of directory. If dependency on dynamic libraries is needed, we recommend you install the JNI libraries inside the Taverna bundle. However the JAR files must be configured as explained in the Configure dependencies section.
Technically, you could use almost the same solution as in Linux, but you would have to start Taverna using the command line: