Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 49397 invoked by uid 500); 5 Jun 2003 14:25:11 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 49380 invoked from network); 5 Jun 2003 14:25:10 -0000 Received: from unknown (HELO webmail.tiscali.de) (62.26.116.129) by daedalus.apache.org with SMTP; 5 Jun 2003 14:25:10 -0000 Received: from DJ0X820J (80.128.236.246) by webmail.tiscali.de (6.7.018) id 3EDED15800039C8B for user@ant.apache.org; Thu, 5 Jun 2003 16:07:53 +0200 Message-ID: <01fb01c32b6e$5980b530$030200c0@DJ0X820J> From: "Antoine Levy-Lambert" To: "Ant Users List" References: <1054822579.4320.64.camel@gizmo> Subject: Re: java.lang.NoSuchMethodError for javah (ant 1.5.3-1, but also oldversions) Date: Thu, 5 Jun 2003 16:25:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is a known bug of ant 1.5.3-1 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18667 it is fixed in ant 1.6alpha, so you can if you wish download a nightly build from http://cvs.apache.org/builds/ant/nightly/ Yours Antoine ----- Original Message ----- From: "Stefan Kost" To: Sent: Thursday, June 05, 2003 4:16 PM Subject: java.lang.NoSuchMethodError for javah (ant 1.5.3-1, but also oldversions) > hi hi, > > I am trying to do > > class="soundex.JSoundLib" classpath="${dest}"/> > > when running ant (with -verbose) this generates : > [javah] Compilation arguments: > [javah] '-o' > [javah] > '/home/ensonic/projects/plainspeech-train/plainspeechtrain/src/libjsound/JSo undLib.h' > [javah] '-classpath' > [javah] > '/home/ensonic/java/jakarta-ant/lib/xml-apis.jar:/home/ensonic/java/jakarta- ant/lib/xercesImpl.jar:/home/ensonic/java/jakarta-ant/lib/optional.jar:/home /ensonic/java/jakarta-ant/lib/cpptasks.jar:/home/ensonic/java/jakarta-ant/li b/ant.jar:/home/ensonic/java/jakarta-ant/lib/ant-contrib-0.3.jar:/home/enson ic/lib/xerces.jar:/home/ensonic/lib/xalan.jar:/usr/lib/java/lib/tools.jar' > [javah] > [javah] The ' characters around the executable and arguments are > [javah] not part of the command. > [javah] Class to be compiled: > [javah] soundex.JSoundLib > > BUILD FAILED > java.lang.NoSuchMethodError: > com.sun.tools.javah.Main.([Ljava/lang/String;)V > at > org.apache.tools.ant.taskdefs.optional.Javah.doClassicCompile(Javah.java:350 ) > at org.apache.tools.ant.taskdefs.optional.Javah.execute(Javah.java:320) > at org.apache.tools.ant.Task.perform(Task.java:341) > at org.apache.tools.ant.Target.execute(Target.java:309) > > > when I instead use javah on the commandline or via the exec task (see > below) it works. I have tried it with jdk-1.4.2beta, 1.4.1_1 and 1.4.0. > > > > > > any ideas? > > ciao > stefan > -- > > < W E B M A C H E R > > EDV+INTERNETSERVICE GMBH > > FON: +49 341 30766 101 > WEB: www.webmacher.de > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org