在BeanShell的蚂蚁屈服,与QUOT;无法创建的javax脚本引擎BeanShell的" [英] Beanshell in Ant yielding, "Unable to create javax script engine for beanshell"

查看:271
本文介绍了在BeanShell的蚂蚁屈服,与QUOT;无法创建的javax脚本引擎BeanShell的"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候语,我试图把一些BeanShell的脚本在我的Ant build.xml文件。我跟着Ant手册以及我可以,但我不断收到无法创建的javax脚本引擎BeanShell的当我运行蚂蚁。下面是测试目标,我写大多来自例子在Ant手册:

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>

我的BeanShellBSH-2.0b4.jar文件是在脚本任务的类路径手工推荐的方式。希望我有正确的文件。现在\\ TEMP:我在C工作。
我一直在使用Google,现在想了一会儿。任何想法将大大AP preciated。谢谢你。

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.

推荐答案

首先,你需要jsr-engines.zip从这里:

First, you need jsr-engines.zip from here:

<一个href=\"https://scripting.dev.java.net/servlets/ProjectDocumentList\">https://scripting.dev.java.net/servlets/ProjectDocumentList

里面,你会发现JSR223 / BeanShell的/编译/ BSH-engine.jar。一些搜索暗示,你需要下载BSH-2.05b.jar。我发现在这里:

Inside, you'll find jsr223/beanshell/build/bsh-engine.jar. Some searching implied that you need to download bsh-2.05b.jar. I found it here:

http://beanshell.org/bsh-2.0b5.jar

更容易玛丽萨BSH-2.0b4.jar也似乎工作,但它打印的暗示它是实验性的。消息

The more easily findable bsh-2.0b4.jar also seemed to work, but it printed a message that implied it was experimental.

这篇关于在BeanShell的蚂蚁屈服,与QUOT;无法创建的javax脚本引擎BeanShell的&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆