在D3的Java文件夹下有文件夹两个:classpackage、example,文件一个:readme.txt。
classpackage中的 javaRD800.dll 是一个面向Java JNI 的windows动态链接库。
classpackage中的 javaRD800.java 是一个面向Java的 JNI 接口。
example中的javaRD800Demo.java 是一个使用Java编写的 读写卡器测试程序。
调用的顺序如下:
javaRD800Demo.java---> javaRD800.java---> javaRD800.dll
javaRD800.dll 文件下载
/*
* @(#)JavaRD800.java 1.0 03/11/27
*
* You can modify the template of this file in the
* directory ..\JCreator\Templates\Template_1\Project_Name.java
*
* You can also create your own project template by making a new
* folder in the directory ..\JCreator\Template\. Use the other
* templates as examples.
*
*/
public class JavaRD800
{
public JavaRD800()
{
}
static
{
System.loadLibrary("javaRD800");
}
public native int dc_init(int lPort,int lBaud);
public native short dc_exit(int lDevice);
public native short dc_card(int lDevice,short iMode,int[] pSnr);
public native short dc_authentication(int lDevice,short iMode,short iSecNr);
public native short dc_halt(int lDevi