通过swig 工具。 http://www.360doc.com/content/12/0628/11/4238731_220930594.shtml http://www.blogjava.net/thinkbase/archive/2006/07/29/JNI_With_SWIG.html