Following my
topic in which I've worked with JNI to make some functionality of the libnfc library available in Processing, I'm now trying to compile the work into a library.
Following the
template instructions, I've changed the build.xml and created a new package called
libnfc with a
LibNFC.java file.
Running the
processingLibs Buildfile results in a successful build, which generates the
libNFC folder in Processing\libraries. Everything seems in place (
C:\(...)\processing-1.0.9\libraries\libNFC\\library\libNFC.jar, etc.)
When I try to run a simple example:
Code:import libnfc.*;
LibNFC rfid;
void setup() {
size(400, 400);
background(255);
}
void draw() {
rectMode(CENTER);
while(rfid.isOn()) {
stroke(0);
fill(255);
rect(200,200,100,100);
String tag = rfid.tagID();
if(tag.equals("0400ae51962281")) {
stroke(0);
fill(127,0,0);
rect(200,200,100,100);
} else if(tag.equals("04ece051962280")) {
stroke(0);
fill(255,200,200);
rect(200,200,100,100);
} else {
stroke(0);
fill(255);
rect(200,200,100,100);
}
}
background(255);
}
I get the following error:
The package "libNFC" does not exist. You might be missing a library.Any clues on what I might be doing wrong?