By default, Batik distribution comes with the Mozilla Rhino JavaScript Engine.
To enable other scripting languages support, you will only need to install
the correct jar files in lib
directory of Batik and to
recompile your distribution.
-
For Python, you need to download JPython distribution at the following
URL http://www.jpython.org.
Then you put the
jpython.jar
file in the Batik
lib
directory.
-
For Tcl, you need to download Jacl & TclBlend distribution at
the following URL http://dev.scriptics.com/software/java.
Then you put the
jacl.jar
& tcljava.jar
files in the Batik lib
directory.
To know how to recompile your distribution you can have a look at Building
Batik section below.
Conversely, you can remove the js.jar
of the Batik
lib
directory to remove JavaScript support and have a smaller
distribution.