Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 97678 invoked from network); 15 Nov 2010 09:04:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Nov 2010 09:04:35 -0000 Received: (qmail 97070 invoked by uid 500); 15 Nov 2010 09:05:05 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 96761 invoked by uid 500); 15 Nov 2010 09:05:03 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 96753 invoked by uid 99); 15 Nov 2010 09:05:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 09:05:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.ludwig@delphi-mb.de designates 212.79.49.37 as permitted sender) Received: from [212.79.49.37] (HELO smtp-out2.pop-interactive.de) (212.79.49.37) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Nov 2010 09:04:54 +0000 Received: from smtp-relay1.pop-i.de (smtp-relay1.intra.pop-i.de [172.16.1.39]) by smtp-out2.pop-interactive.de (Postfix) with ESMTP id 1325411CDE for ; Mon, 15 Nov 2010 10:04:33 +0100 (CET) Received: from mail02.delphi-mb.de (mail02.delphi-mb.de [193.27.46.2]) by smtp-relay.pop-interactive.de (Postfix) with ESMTP id 13FEF11189 for ; Mon, 15 Nov 2010 10:04:33 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail02.delphi-mb.de (Postfix) with ESMTP id 75DFC63021D for ; Mon, 15 Nov 2010 09:51:26 +0100 (CET) Received: from hammai010.delphi.local (hammai010.delphi.local [192.168.100.15]) by mail02.delphi-mb.de (Postfix) with ESMTP id 4604E6301D1 for ; Mon, 15 Nov 2010 09:51:26 +0100 (CET) Received: from hammai008.delphi.local ([192.168.100.25]) by hammai010.delphi.local with Microsoft SMTPSVC(6.0.3790.3959); Mon, 15 Nov 2010 10:04:32 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Executing javascript ant task with jdk 1.6 Date: Mon, 15 Nov 2010 10:04:32 +0100 Message-ID: <51772743BEA5D44A9EA5BF52AADDD6FB011993DD@hammai008.delphi.local> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Executing javascript ant task with jdk 1.6 Thread-Index: AcuEojFYtylev4WcQaS+xy0kNDPPtAAANTLw References: From: "Ludwig, Michael" To: "Ant Users List" X-OriginalArrivalTime: 15 Nov 2010 09:04:32.0208 (UTC) FILETIME=[1DF1CD00:01CB84A4] > I am executing a ant javascript task and while executing it I am > getting error java.lang.NoSuchMethodError:=20 > = org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascri= pt/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