高手求救!关于jni 问题!
我按照书上,敲了一个例子:
class HelloWorld{
public native void displayHelloWorld();
static {System.loadLibrary("hello");}
public static void main(String[] args)
{
new HelloWorld().displayHelloWorld();
}
}
javac 编译通过,可是在用javah生成头文件时老是提示:
Error: Class HelloWorld.class couldnot be found!
请问是怎么回事?谢谢了先!