I have a java program that produces JNI header files using a bytecode
package. The program was hacked together in a day or two and consists
of a single java class. So is anybody interested?
That bytecode package mentioned above reads class files from any given
path (Zip-Files, Directories, even URLs) and provides methods similar
to the reflection API to access them. The package is part of my
decompiler, but can be used standalone. There are two caveat: First,
the package uses some collection classes so it needs 1.2, second, the
handling of bytecode instructions will probably change in near future
(but javah doesn't need to read instructions).
I know, that there is also a gnu.bytecode package as part of kawa. I
wrote my own bytecode package, since that package was not usable for
me: it missed some public methods to access all information.
Jochen