1ï¼é¦å
å建HelloWorld.javaæ件ï¼
class HelloWorld
{
public native void hello();//å建ä¸ä¸ªnativeå½æ°ï¼éè¦ç¨Cå®ç°
static{
System.loadLibrary("hello"); //è¿éå è½½çåºæ¯hello.soæè
hello.dllçï¼æ们使ç¨.so
}
public static void main(String[] args)
{
new HelloWorld().hello();
}
}
2ï¼å°ä¸è¿°æ件ä¿å为HelloWorld.java