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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -