ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ludwig, Michael" <>
Subject RE: Executing javascript ant task with jdk 1.6
Date Mon, 15 Nov 2010 09:04:32 GMT
> I am executing a ant javascript task and while executing it I am
> getting error java.lang.NoSuchMethodError: 
> org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine
> ;
> It was working fine with JDK 1.5 but it is giving error with JDK1.6

Sun JDK 1.6 comes with its own implementation of Javascript. It is not
"org.mozilla.javascript" but "".
You don't need any additional jars to run it.

> I have googeld for this error and came to know about bsf and js.jar
> but even if i am using correct version of jars, still I am getting
> this error. Please help me to resolve this error

You js.jar likely is the one from Mozilla. As you are on 1.6, try
removing bsf.jar and js.jar from Ant's classpath. Might work.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message