请教大家一个郁闷了我很久的JNI问题。
怎么我老是报:java.lang.UnsatisfiedLinkError: greeting
at tset.Test.greeting(Native Method)
at tset.Test.main(Test.java:13)
Exception in thread "main" 
这个异常呢?
我的源代码如下:
package tset;public class Test {
public native static void greeting();
static
    {
      System.load("D:/j2sdk1.4.2_04/bin/ooooo.dll");
}
public static void main(String[] args) {
         Test.greeting();
}}
头文件tset_Test.h
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class tset_Test */#ifndef _Included_tset_Test
#define _Included_tset_Test
#ifdef __cplusplus
extern "C" {
#endif
/*
 * Class:     tset_Test
 * Method:    greeting
 * Signature: ()V
 */
JNIEXPORT void JNICALL Java_tset_Test_greeting
  (JNIEnv *, jclass);#ifdef __cplusplus
}
#endif
#endifC程序代码HelloNative.c
#include "tset_Test.h"
 #include <stdio.h> JNIEXPORT void JNICALL Java_HelloNative_greeting(JNIEnv* env, jclass cl)
{
    printf("Hello Native World!\n");
}