目录
1.两套SDK(windows开发版和linux发布版)
2.导入jar包
<dependency>
<groupId>com.sun.jna</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/jna.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun.jna.examples</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/examples.jar</systemPath>
</dependency>
<dependency>
<groupId>com.sun.jna.json</groupId>
<artifactId>test</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/json.jar</systemPath>
</dependency>
3.导入SDK
项目根目录下新建lib文件夹,并设置成资源目录