据我的经验来看 让Java通过对这个DLL进行JNI调用 然后调用 EntryPoint = "FindWindowA")] public static extern IntPtr FindWindow(string lpClassName 这个你可能需要编写第三方DLL 然后在程序里写System.loadLibrary("DLL的名字"); ||| 要Import 导入dll string lpWindowName); ||| 把DLL放到WINDOW的SYSTEM32这个文件夹里 我的QQ:346240772 ||| 先生明函数:[DllImport("user32.dll" 这个主要是由于命名规范导致你没法直接对那个指定的DLL进行JNI调用 来间接调用那个指定的DLL 你必须编写符合JNI调用规范的DLL来中转一把