try cpptasks from ant contrib which works great for jni.
Thomas
On Feb 9, 2006, at 10:45 AM, Xar wrote:
Eeem, no one knows the answer to my question or my mails didn't
arrive?
2006/2/1, Xar <[EMAIL PROTECTED]>:
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!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]