UnsatisfiedLinkError: jssc.SerialNativeInterface

edited September 2014 in Library Questions

Processing 2.2.1, OS Ubuntu 14.04, IDE Eclipse 3.8.1

I'm trying to run some code using the serial port, but when I try to run it I get the error

Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: jssc.SerialNativeInterface.openPort(Ljava/lang/String;Z)J
    at jssc.SerialNativeInterface.openPort(Native Method)
    at jssc.SerialPort.openPort(SerialPort.java:158)
    at processing.serial.Serial.<init>(Unknown Source)
    at processing.serial.Serial.<init>(Unknown Source)
    at main.setup(main.java:18)
    at processing.core.PApplet.handleDraw(PApplet.java:2361)
    at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:240)
    at processing.core.PApplet.run(PApplet.java:2256)
    at java.lang.Thread.run(Thread.java:745)

looking it up online the problem seems to be that I need to include the native library (which I believe is libjSSC-2.8.so) but when I import it I get the error

Archive for required library: 'libjSSC-2.8.so' in project 'Graphing' cannot be read or is not a valid ZIP file

I had essentially the same code working in the default Processing editor, the issues started when I moved it over to Eclipse

Any help would be appreciated, if there's anything I forgot to include that would help with debugging let me know

Tagged:
Sign In or Register to comment.