ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mangesh Moghe <mangesh.mo...@tcs.com>
Subject RE: Executing javascript ant task with jdk 1.6
Date Mon, 15 Nov 2010 10:13:58 GMT
Thanks for the info. 

I tried your solution but still the same error is coming. I removed 
bsf.jar and js.jar from classpath and put "rt.jar" from JDK6 in classpath 
as this jar contains "org.mozilla.javascript" package and tried to test 
but still same error .

Thanks and Regards
Mangesh Moghe
Mailto: mangesh.moghe@tcs.com



From:
"Ludwig, Michael" <Michael.Ludwig@delphi-mb.de>
To:
"Ant Users List" <user@ant.apache.org>
Date:
11/15/2010 02:35 PM
Subject:
RE: Executing javascript ant task with jdk 1.6



> 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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message