ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Kost <s.k...@webmacher.de>
Subject java.lang.NoSuchMethodError for javah (ant 1.5.3-1, but also old versions)
Date Thu, 05 Jun 2003 14:16:14 GMT
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/JSoundLib.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/lib/ant.jar:/home/ensonic/java/jakarta-ant/lib/ant-contrib-0.3.jar:/home/ensonic/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


Mime
View raw message