> 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 "sun.org.mozilla.javascript.internal". 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. Michael --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org