转载: Javah生成JNI头文件出现找不到类的错误 错误: 找不到 'com.chnic.jni.SayHellotoCPP' 的类文件。 上图可以看到错误和解决办法。 不要忘记那个点 javah -classpath . -jni com.chnic.jni.SayHellotoCPP