JNI很简单,但你要没学过那就不好办了,一两句话说不清呀,去
http://java.sun.com/products/jdk/faq/jnifaq.html
看看,找些例子做做,今天肯定能搞定你的问题。:)

解决方案 »

  1.   

    Coroutine for Java class library provides the mechanism for Java to call external functions exported from Windows dynamic link libraries. Coroutine also enables you to dynamically build callable wrappers around Java methods so external functions can call Java methods as if they are native functions.Coroutine shields you from dealing with Java-To-Native-Interface (JNI,RNI, JRI) details. With Coroutine you don't need to write intermediate C++ wrappers. Coroutine for Java is the only tool that you need to integrate access to Win32 and custom APIs into your Java code. Coroutine was designed to help developers who want to incorporate  Windows features and functions into Java code. Coroutine for Java supports all existing Win32-based Java Virtual Machines.