I am trying to use the javah task in an ant build file in Eclipse and I keep getting the following error:
BUILD FAILED
C:\sandbox\build-jni.xml:7: Can't load javah
Here is my build-jni.xml file:
<project>
<property name="bin" location="bin" />
<target name="generate-jni">
<javah destdir="${bin}" classpath="${bin}">
<class name="org.example.ExecJNI" />
</javah>
</target>
Any thoughts as to why I'm getting that error? My project is pointing to the JDK and not the JRE
generate-jni: [javah] Exception in thread "main" java.lang.NullPointerException [javah] at com.sun.tools.javah.JavahTask.run(JavahTask.java:509) [javah] at com.sun.tools.javah.JavahTask.run(JavahTask.java:335) [javah] at com.sun.tools.javah.Main.main(Main.java:46)
– Jason Jacob Feb 24 '13 at 16:06