d1ck3ns
Posts: 1
Joined: Fri Feb 19, 2016 8:28 pm

JavaFX and Near Field Communication on the Raspberry Pi

Fri Feb 19, 2016 8:59 pm

Hi all,

I'm trying to use an NFC device (ACR122u) with rasbian and program in java.

Im using the following tutorial: http://www.oracle.com/technetwork/artic ... 77662.html

I am getting stuck here:
Java SE comes with a package, javax.smartcardio, that allows developers to communicate with smart card readers. By default, this package will look for a personal computer/smart card (PC/SC) implementation on the system.

Now that you have installed the required Linux packages on your Raspberry Pi, the only remaining task is that we have to point the Java Virtual Machine to the location of the pcsclite library.

This is done by setting the system property sun.security.smartcardio.library to the location of the pcsclite library as follows:

java -Dsun.security.smartcardio
.library=/path/to/libpcsclite.so

-------------------------------------------------------
I believe that the version of java pre-installed on rasbian jessie, does not come with "java" or "javaFX"

--> which is why i cannot get "java -Dsun.security.smartcardio.library=/path/to/libpcsclite.so" to work.

-----> meaning the "smartcardio" package doesn't exist....

---------------------------------------------------------------------------------------------------------------------------

Can anyone help me with this?

Return to “Java”