This is a question which puzzles me. javah
needs a classpath, of bytecode-compiled classes, in order to generate its headers.
But there is javac
which, presumably, builds an AST out of the source code, which could possibly be used by javah
as well. Especially since native methods are easily spotted.
So, why does javah
need the bytecode at all?