JDK 8 javac supports a -h option to generate native headers. Ant's <javac> could support this, obsoleting <javah>.