相关文章推荐

I just got the duemilanove. I'm running Ubuntu 8.10 AMD64(x86_64) with openjdk-6, librxtx-java 2.1.7. I've copied librxtxSerial.so from /usr/lib/ to arduino lib and it's working fine. I'm able to program the board fine. However, I cannot initiate serial monitoring... it crashes with this:

Stable Library

Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7

RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyUSB0

An unexpected error has been detected by Java Runtime Environment: SIGSEGV (0xb) at pc=0x00007f705431a462, pid=12139, tid=140120570689872 Java VM: OpenJDK 64-Bit Server VM (1.6.0_0-b12 mixed mode linux-amd64) Distribution: Ubuntu 8.10, package 6b12-0ubuntu6.1 Problematic frame: C [librxtxSerial.so+0x6462] read_byte_array+0x52 An error report file with more information is saved as: /home/kam/Desktop/arduino-0013/hs_err_pid12139.log If you would like to submit a bug report, please include instructions how to reproduce the bug and visit: httpsbugs.launchpad.net/ubuntu/+source/openjdk-6/ The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug.

Aborted
I've tried updating to the jaunty librxtx-java deb and even compiling newer versions of the RXTX api. At this point I have no idea what the problem is. I've tried serial monitoring in windows and it works just fine. I absolutely hate logging into windows so I'm desperate for a solution here. Thanks.

I realized that this is in the wrong section... should be under the Software Troubleshooting section.

Yes, I did copy RXTXcomm.jar. I'm not sure what the problem is but in the meantime I will explore with screen. Also, I will mess around with the C and C++ workarounds for serial communication....

Ubuntu crashed last night and I was not able to log back in.
I tried reinstalling Nvidia drivers, checking GDM and Xorg logs, installing kdm instead of gdm... something went bad.

I reinstalled Ubuntu 8.10. I install arduino... yet this time I couldn't get avrdude to run from hardware/tools...which is strange because it ran perfectly last time without the need to compile avrdude. I had to compile avrdude which took some time because I needed to get all the dependencies settled. Anyways, now I'm uploading to the arduino and serial communication is working perfectly for some reason. I just copied librxtxSerial.so like last time... this time no errors.

This is all getting quite annoying. I had a working setup (Arduino Duemilanove, Ubuntu 8.10) It worked straight away. And then suddenly, it doesn't work.

/arduino-0015$ ./arduino 
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698)
      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.app.Editor.populateSerialMenu(Editor.java:903)
      at processing.app.Editor.buildToolsMenu(Editor.java:800)
      at processing.app.Editor.<init>(Editor.java:190)
      at processing.app.Base.<init>(Base.java:149)
      at processing.app.Base.main(Base.java:104)
arduino-0015$

Following the instructions for installing rxtx doesn't help (the instructions fail, and the failure isn't addressed by the instructions).

Before anyone suggests that I've made some mistake installing rxtx, consider that Processing somehow manages to work (as in: I can communicate with my Arduino via Processing)

I've got mine working on 9.04. I'll try to post what I did when I get home tonight. It did involve installing a 32 bit java library via synaptic.

I got impatient, so I set out on my own solution. First I tried the running 32 bit java within 64 bit linux method without any luck.

Then, I found mention of the issue on launchpad here:

 
推荐文章