java - Make javah ignore inner classes when generating JNI headers? -


exactly title says.

i have class declares native methods, has couple of inner classes. javah utility insists on generating separate headers inner classes even though don't have native method declarations. there way force javah stop doing (annotations, secret command-line switches, anything)?

i don't know way that. (i use oracle jdk.)

i understand annoyance problem limited unnecessary files , unnecessary regeneration (outer class changes result in rewriting useless header files inner classes).

to solve problem, delete empty header files. use ant, since available generic project builder step in eclipse.

<?xml version="1.0" encoding="utf-8"?> <project name="javah">     <mkdir dir="javah" />      <javah classpath="bin" destdir="javah">         <!-- list classes here -->         <class name="com.example.outer" />         <class name="com.example.outerwithnatives" />     </javah>      <delete>         <fileset dir="javah">             <not>                 <contains text="jniexport" />             </not>         </fileset>     </delete>  </project> 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -