DLepisodes.com
New Member
I'm following this tutorial about creating JNI files for Mac OS X. The tutorial is written for NetBeans, but I'm trying to follow it with Eclipse. Unfortunately, this has caused me to be stuck at step 4.1.3, which is about generating a .h file using ant:\[quote\] Modify the build.xml file of your Netbeans project by adding the following before the closing tag:\[/quote\]\[code\]<target name="-post-compile"> <javah destdir="./build" force="yes" class="ca.weblite.jniexample.NSSavePanel" classpath="./build/classes" /> </target>\[/code\]First off, it seems that Eclipse projects don't include a build.xml file by default, so I used these instructions to generate one. Then I added the command as shown above. But when I build with the ant script, the .h file does not get built. No error message related to this is generated.I believe that the reason is because Eclipse projects do not have a "./build" folder as shown in the examples, but I don't know what to put in its place. Could anybody please let me know how to fix this issue?