首先用System类中的
load(String filename)
Loads a code file with the specified filename from the local file system as a dynamic library.
或者loadLibrary(String libname)
Loads the system library specified by the libname argument.
方法导入Dll文件
然后利用native来定义本地的方法。
在java核心技术II中有详细的说明
首先用System类中的load(String filename) Loads a code file with the specified filename from the local file system as a dynamic library.
或者loadLibrary(String libname)
Loads the system library specified by the libname argument.