Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help on Unable to create javax script engine for jython

622 views
Skip to first unread message

Liming

unread,
May 8, 2009, 4:11:51 AM5/8/09
to
I use ant, and build and xml file like this:
<project name="gen" default="gen" basedir=".">
<target name="gen">
<script language="jython">

I have jython2.2.1.jar, and it always fails at <script
language="jython"> with this error: Unable to create javax script
engine for jython.

Anyone can help?

THanks

jmaka...@gmail.com

unread,
Aug 19, 2015, 11:21:58 AM8/19/15
to
Check with the class path for ant is set.. it would be something link so:

SET APACHE_ANT="C:\bea\modules\org.apache.ant_1.6.5\bin\ant.bat"
SET CLASSPATH_FOR_ANT="lib/jsch-0.1.33.jar;lib/bsf.jar;lib/jython-2.2.jar"
set WL_HOME=C:\bea
call "%WL_HOME%\wlserver_10.3\server\bin\setWLSEnv.cmd"
call %APACHE_ANT% -lib %CLASSPATH_FOR_ANT% -f deploy.xml %1

note the CLASSPATH_FOR_ANT var in second and da last line

Arne Vajhøj

unread,
Aug 19, 2015, 7:17:04 PM8/19/15
to
On 8/19/2015 11:21 AM, jmaka...@gmail.com wrote:
> On Friday, 8 May 2009 09:11:51 UTC+1, Liming wrote:
>> I use ant, and build and xml file like this:
>> <project name="gen" default="gen" basedir=".">
>> <target name="gen">
>> <script language="jython">
>>
>> I have jython2.2.1.jar, and it always fails at <script
>> language="jython"> with this error: Unable to create javax script
>> engine for jython.
>>
>> Anyone can help?
>
> Check with the class path for ant is set.. it would be something link so:
>
> SET APACHE_ANT="C:\bea\modules\org.apache.ant_1.6.5\bin\ant.bat"
> SET CLASSPATH_FOR_ANT="lib/jsch-0.1.33.jar;lib/bsf.jar;lib/jython-2.2.jar"
> set WL_HOME=C:\bea
> call "%WL_HOME%\wlserver_10.3\server\bin\setWLSEnv.cmd"
> call %APACHE_ANT% -lib %CLASSPATH_FOR_ANT% -f deploy.xml %1
>
> note the CLASSPATH_FOR_ANT var in second and da last line

You did notice that the question was more than 6 years old?

Arne


0 new messages