Serial library in Eclipse
in
Integration and Hardware
•
3 years ago
hello,
i'm trying for the last hours to get the serial library running in eclipse (Eclipse IDE for Java Developers Version 1.2.1.20090918) on macbookpro mac osx 10.6.4 to get connected to my arduino board.
what i've done yet:
i imported the
copied librxtxSerial.jnilib to MacintoshHD/Library/Java/Extensions/
linked RXTXcomm.jar to librxtxSerial.jnilib (by choosing RXTXcomm.jar - properties - Native library: Location path: /Library/Java/Extensions)
when i run the programm, i get this error:
java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/librxtxSerial.jnilib: no suitable image found. Did find: /Library/Java/Extensions/librxtxSerial.jnilib: no matching architecture in universal wrapper thrown while loading gnu.io.RXTXCommDriver
java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/librxtxSerial.jnilib: no suitable image found. Did find: /Library/Java/Extensions/librxtxSerial.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.serial.Serial.list(Serial.java:554)
at mainClass.setup(mainClass.java:10)
at processing.core.PApplet.handleDraw(PApplet.java:1571)
at processing.core.PApplet.run(PApplet.java:1496)
at java.lang.Thread.run(Thread.java:637)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.ports()
at processing.serial.Serial.errorMessage(Serial.java:588)
at processing.serial.Serial.list(Serial.java:569)
at mainClass.setup(mainClass.java:10)
at processing.core.PApplet.handleDraw(PApplet.java:1571)
at processing.core.PApplet.run(PApplet.java:1496)
at java.lang.Thread.run(Thread.java:637)
my second try was to use the arduino library with the Arduino Firmata.
same imports und link to librxtxSerial.jnilib
when i run the programm, this window pops up and asks me to chongure gnu.io.rxtx.properties
Now i don't know what to do.
when i just close the window i get the following exception:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/gnu.io.rxtx.SerialPorts
IOException!
can anybody help me please?
manuel
i'm trying for the last hours to get the serial library running in eclipse (Eclipse IDE for Java Developers Version 1.2.1.20090918) on macbookpro mac osx 10.6.4 to get connected to my arduino board.
what i've done yet:
i imported the
- core.jar
- serial.jar
- RXTXcomm.jar
copied librxtxSerial.jnilib to MacintoshHD/Library/Java/Extensions/
linked RXTXcomm.jar to librxtxSerial.jnilib (by choosing RXTXcomm.jar - properties - Native library: Location path: /Library/Java/Extensions)
when i run the programm, i get this error:
java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/librxtxSerial.jnilib: no suitable image found. Did find: /Library/Java/Extensions/librxtxSerial.jnilib: no matching architecture in universal wrapper thrown while loading gnu.io.RXTXCommDriver
java.lang.UnsatisfiedLinkError: /Library/Java/Extensions/librxtxSerial.jnilib: no suitable image found. Did find: /Library/Java/Extensions/librxtxSerial.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1823)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:83)
at processing.serial.Serial.list(Serial.java:554)
at mainClass.setup(mainClass.java:10)
at processing.core.PApplet.handleDraw(PApplet.java:1571)
at processing.core.PApplet.run(PApplet.java:1496)
at java.lang.Thread.run(Thread.java:637)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.ports()
at processing.serial.Serial.errorMessage(Serial.java:588)
at processing.serial.Serial.list(Serial.java:569)
at mainClass.setup(mainClass.java:10)
at processing.core.PApplet.handleDraw(PApplet.java:1571)
at processing.core.PApplet.run(PApplet.java:1496)
at java.lang.Thread.run(Thread.java:637)
my second try was to use the arduino library with the Arduino Firmata.
same imports und link to librxtxSerial.jnilib
when i run the programm, this window pops up and asks me to chongure gnu.io.rxtx.properties
Now i don't know what to do.
when i just close the window i get the following exception:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/gnu.io.rxtx.SerialPorts
IOException!
can anybody help me please?
manuel
2