看了下JNA的文章 做个例子没有成功 首先准备了.net类库DLL文件 并放在com\projectJNA文件夹下 Method.dll
src下 一个接口 一个测试类
User32.classpackage com.projectJNA;import com.sun.jna.Library;
public interface User32 extends Library {

boolean LockWorkStation();}Test.classpackage com.projectJNA;import com.sun.jna.Native;public class Test {
    public static void main(String[] args) {
      User32 user32 = (User32) Native.loadLibrary("Method", User32.class);
      user32.LockWorkStation();
    }
}
运行 报错 Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'LockWorkStation': ???????¨?
at com.sun.jna.Function.<init>(Function.java:179)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:345)
at com.sun.jna.NativeLibrary.getFunction(NativeLibrary.java:325)
at com.sun.jna.Library$Handler.invoke(Library.java:203)
at $Proxy0.LockWorkStation(Unknown Source)
at com.projectJNA.Test.main(Test.java:8)。。调用不了也点不出来.
请问下高手这是啥问题 怎么正确调用?
补充下 DLL里面的类为using System;
using System.Collections.Generic;
using System.Text;namespace Method
{
    public class Say
    {
        public void sayHi(string s) 
        {
            Console.WriteLine("Test JNA 成功 !" +s);
            Console.ReadLine();
        }
    }
}