We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › Error inside serial.ports()
Page Index Toggle Pages: 1
Error inside serial.ports() (Read 2565 times)
Error inside serial.ports()
May 15th, 2010, 4:06am
 
I'm getting this error
"Error inside Serial.ports()"
i'm using processing in ubuntu 10.04

is there a way for me to set it to the proper serial port?

here is the printout of the error:
java.lang.UnsatisfiedLinkError: /home/turtle/Apps/processing-1.1/libraries/serial/library/librxtxSerial.so: /home/turtle/Apps/processing-1.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/turtle/Apps/processing-1.1/libraries/serial/library/librxtxSerial.so: /home/turtle/Apps/processing-1.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:1750)
     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
     at java.lang.Runtime.loadLibrary0(Runtime.java:840)
     at java.lang.System.loadLibrary(System.java:1047)
     at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
     at processing.serial.Serial.list(Unknown Source)
     at monski_pong_handshake.setup(monski_pong_handshake.java:80)
     at processing.core.PApplet.handleDraw(Unknown Source)
     at processing.core.PApplet.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:636)
processing.app.debug.RunnerException: RuntimeException: Error inside Serial.ports()
     at processing.app.Sketch.placeException(Unknown Source)
     at processing.app.debug.Runner.findException(Unknown Source)
     at processing.app.debug.Runner.reportException(Unknown Source)
     at processing.app.debug.Runner.exception(Unknown Source)
     at processing.app.debug.EventThread.exceptionEvent(Unknown Source)
     at processing.app.debug.EventThread.handleEvent(Unknown Source)
     at processing.app.debug.EventThread.run(Unknown Source)
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 monski_pong_handshake.setup(monski_pong_handshake.java:80)
     at processing.core.PApplet.handleDraw(Unknown Source)
     at processing.core.PApplet.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:636)


can someone give me instructions on how to fix this?
much appreciated Cheesy thanks Smiley
Re: Error inside serial.ports()
Reply #1 - May 15th, 2010, 4:21am
 
are you using 64 bit processor?

because that looks like you're trying to use 32 bit libraries: "wrong ELF class: ELFCLASS32"

try googling the error...

http://www.arduino.cc/playground/Linux/Ubuntu
Page Index Toggle Pages: 1