sun-java can't find rxtx when running arduino
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Home Climate Control |
Unknown
|
Unknown
|
|||
arduino (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: arduino
When opening Arduino IDE I get:
java.lang.
Exception in thread "main" java.lang.
at java.lang.
at java.lang.
at java.lang.
at gnu.io.
at processing.
at processing.
at processing.
at processing.
at processing.
at processing.
at processing.
at processing.
at processing.
Sounds like something is in the wrong place.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: arduino 0018+dfsg-4
ProcVersionSign
Uname: Linux 2.6.35-22-generic i686
NonfreeKernelMo
Architecture: i386
Date: Wed Oct 20 22:55:13 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: arduino
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 PATH="$ JNI_PATH" PATH="$ LD_LIBRARY_ PATH:$JNI_ PATH"
do
if [ -d "$JNI_PATH" ]
then
if [ -z "$LD_LIBRARY_PATH" ]
then
export LD_LIBRARY_
else
export LD_LIBRARY_
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.