简体   繁体   中英

Import Dll library in java

我有一个Dll库,其中包含用于更改RFID阅读器状态的方法,那么如何导入库以便能够在java中使用这些方法?

You need to USE JNA "Java Native Access" its a library which provides easy access to native shared libraries. for example check the following link https://github.com/twall/jna/blob/master/www/GettingStarted.md

您需要导入dll文件,然后使用System.loadLibrary(Core.NATIVE_LIBRARY_NAME)加载库

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM