Error inside Serial.ports()
in
Integration and Hardware
•
2 years ago
HI,
I keep getting this error when trying to communicate to arduino via serial:
Error inside Serial.ports()
java.lang.UnsatisfiedLinkError: /home/matjaz/Clairvision/Project_Signal/Processing/Processing_software/processing-1.2.1/libraries/serial/library/librxtxSerial.so: /home/matjaz/Clairvision/Project_Signal/Processing/Processing_software/processing-1.2.1/libraries/serial/library/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) thrown while loading gnu.io.RXTXCommDriver
java.lang.UnsatisfiedLinkError: /home/matjaz/Clairvision/Project_Signal/Processing/Processing_software/processing-1.2.1/libraries/serial/library/librxtxSerial.so: /home/matjaz/Clairvision/Project_Signal/Processing/Processing_software/processing-1.2.1/libraries/serial/library/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.serial.Serial.list(Unknown Source)
at fish_matjaz_minimtest.setup(fish_matjaz_minimtest.java:82)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
processing.app.debug.RunnerException: RuntimeException: Error inside Serial.ports()
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:582)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.ports()
at processing.serial.Serial.errorMessage(Unknown Source)
at processing.serial.Serial.list(Unknown Source)
at fish_matjaz_minimtest.setup(fish_matjaz_minimtest.java:82)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
Confiuration::
Ubuntu 10.10., 64 bit
Sun java 6
64 bit arduino 0021, Processing 1.2.1
Other threads indicate problem in arduino's java rxtx libraries. I have replaced them but still keep getting this error.
Used this links:
http://chemicaloliver.net/arduino/fixing-arduino-on-ubuntu-9-10-karmic-x64/
http://myy.haaga-helia.fi/~karte/arduino_editor_on_64_bit_ubuntu_gutsy.html
Any clues? I'm in a need to make it work...
Thanks.
M
I keep getting this error when trying to communicate to arduino via serial:
Error inside Serial.ports()
java.lang.UnsatisfiedLinkError: /home/matjaz/Clairvision/Project_Signal/Processing/Processing_software/processing-1.2.1/libraries/serial/library/librxtxSerial.so: /home/matjaz/Clairvision/Project_Signal/Processing/Processing_software/processing-1.2.1/libraries/serial/library/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) thrown while loading gnu.io.RXTXCommDriver
java.lang.UnsatisfiedLinkError: /home/matjaz/Clairvision/Project_Signal/Processing/Processing_software/processing-1.2.1/libraries/serial/library/librxtxSerial.so: /home/matjaz/Clairvision/Project_Signal/Processing/Processing_software/processing-1.2.1/libraries/serial/library/librxtxSerial.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.serial.Serial.list(Unknown Source)
at fish_matjaz_minimtest.setup(fish_matjaz_minimtest.java:82)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
processing.app.debug.RunnerException: RuntimeException: Error inside Serial.ports()
at processing.app.Sketch.placeException(Sketch.java:1543)
at processing.app.debug.Runner.findException(Runner.java:582)
at processing.app.debug.Runner.reportException(Runner.java:558)
at processing.app.debug.Runner.exception(Runner.java:498)
at processing.app.debug.EventThread.exceptionEvent(EventThread.java:367)
at processing.app.debug.EventThread.handleEvent(EventThread.java:255)
at processing.app.debug.EventThread.run(EventThread.java:89)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.ports()
at processing.serial.Serial.errorMessage(Unknown Source)
at processing.serial.Serial.list(Unknown Source)
at fish_matjaz_minimtest.setup(fish_matjaz_minimtest.java:82)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
Confiuration::
Ubuntu 10.10., 64 bit
Sun java 6
64 bit arduino 0021, Processing 1.2.1
Other threads indicate problem in arduino's java rxtx libraries. I have replaced them but still keep getting this error.
Used this links:
http://chemicaloliver.net/arduino/fixing-arduino-on-ubuntu-9-10-karmic-x64/
http://myy.haaga-helia.fi/~karte/arduino_editor_on_64_bit_ubuntu_gutsy.html
Any clues? I'm in a need to make it work...
Thanks.
M
2