ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xar <extremd...@gmail.com>
Subject Re: Problem making a build.xml using javah
Date Thu, 09 Feb 2006 09:45:36 GMT
Eeem, no one knows the answer to my question or my mails didn't arrive?

2006/2/1, Xar <extremdur2@gmail.com>:
>
> Hello.
>
> I am starting a project that combines both java and C code and I need it
> to be compiled through ant (because the main aplicattion uses it).
>
> I readed the webpage and what's my surprise to see that only version 1.4supports jni
(it's that true? higher versions doesn't support jni?)
>
> Well, i tried to download version 1.4 and again I was surprised when I saw
> that its de 1.6.2 (or it promtps it when i do ant -version):
>
>     /usr/software/jakarta-ant-1.4/bin/ant -version
>     Apache Ant version 1.6.2 compiled on January 3 2006
>
> Well, i tried to compile this file with this version and the latest one
> and this is the result:
>
>     ant
>     Buildfile: build.xml
>
>     compile:
>
>     BUILD FAILED
>     /home/xar/Proyecto/temp/build.xml:4: Could not create task or type of
> type: javah.
>
>     Ant could not find the task or a class this task relies upon.
>
> The build.xml couldn't be shorter:
>
>     <project name="BOI" default="compile" basedir=".">
>             <target name="compile">
>                     <javac srcdir="." destdir="." nowarn="off" />
>                     <javah destdir="." class="HelloWorld" />
>             </target>
>     </project>
>
> This is a Hello World program to try JNI that compiled separately in
> command line works fine.
>
> I apologize for my poor English.
>
> Thank you!
>

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