Using the ACR122U NFC Card Reader SDK with Java is hard work for a Java Newbie like me, but I managed it spending quiet some time on getting the demo application to run.
First Steps of running the Java Demo
- Install the Drivers and Demos from the CD
- Plug in the card reader to your PC
- the Java Sample Code is located here: Sample Codes\Java\source files
- Install Eclipse (for Java newbs like me) 🙂
- Make new Java project in Eclipse
- import the demo sources: Sample Codes\Java\source files
- download the OpenBeacon.org active 2.4GHz RFID reader source code dll Jacspcsc.dll in Folder C:\myfolder
- Link the downloaded .dll to the project in eclipse:
- Select ‘Run As’ -> ‘Run configurations’
- Check that correct run configuration is selected and choose the ‘Arguments’ tab
- In the ‘VM Arguments’ textbox add -Djava.library.path=C:\myfolder
- Under Windows 8 you have to install Java 32bit to work with the dll: tutorial
- After that, you can run the project successfully and the applet should run (see screenshot)