ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <levylamb...@tiscali-dsl.de>
Subject Re: java.lang.NoSuchMethodError for javah (ant 1.5.3-1, but also oldversions)
Date Thu, 05 Jun 2003 14:25:43 GMT
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" <s.kost@webmacher.de>
To: <user@ant.apache.org>
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
>
> <javah outputFile="${src}/libjsound/JSoundLib.h"
> 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.<init>([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.
>
> <exec dir="${dest}" executable="javah" >
> <arg line="-classpath ${dest} -o ${src}/libjsound/JSoundLib.h
> soundex.JSoundLib"/>
> </exec>
>
> 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


Mime
View raw message