Beanshell in Ant yielding, "Unable to create javax script engine for beanshell"

Posted by John B. on Stack Overflow See other posts from Stack Overflow or by John B.
Published on 2010-04-26T20:33:34Z Indexed on 2010/04/27 5:13 UTC
Read the original article Hit count: 598

Filed under:
|
|

Greeting, I'm trying to put some Beanshell script in my Ant build.xml file. I've followed the Ant manual as well as I can but I keep getting "Unable to create javax script engine for beanshell" when I run Ant. Here is the test target I wrote mostly from examples in the Ant manual:

<target name="test-target">
    <script language="beanshell" setbeans="true">
        <classpath>
            <fileset dir="c:\TEMP" includes="*.jar" />
        </classpath>
        System.out.println("Hello world");
    </script>
</target>

My beanshell "bsh-2.0b4.jar" file is on the script task's classpath the way the manual recommended. Hope I have the right file. I'm working in c:\TEMP right now. I've been googling and trying for a while now. Any ideas would be greatly appreciated. Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about ant