Comment 2 for bug 664309

Revision history for this message
Scott Howard (showard314) wrote : Re: [Bug 664309] Re: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver

Thanks for the report: it sounds like bug #325506

https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/325506

Are you using sun-java? It appears that sun-java does not look where
it is supposed to for native libraries. This has been fixed in
openjdk, but since we don't have the source code for sun-java, it is
an open bug.

The work around is to set the LD_LIBRARY_PATH, you can put the
following in your .bashrc file

for JNI_PATH in /usr/lib/jni /usr/share/jni
do
  if [ -d "$JNI_PATH" ]
  then
    if [ -z "$LD_LIBRARY_PATH" ]
    then
      export LD_LIBRARY_PATH="$JNI_PATH"
    else
      export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JNI_PATH"
    fi
done

I'll actually put this into the debian and ubuntu wrapeprs and see if
upstream arduino would be interested in using this in their wrapper as
well.