用javac 生成class文件后。
假设class文件在源文件目录的包下,先将编译路径设置成源文件目录即可
set classpath=G:eclipse javaHelloWorldsrc
然后
javah -jni com.example.helloworld.JNITest
搞定