Trouble shooting Linux start up

OppaErich
Posts: 17
Joined: Sat Jun 11, 2011 3:50 pm

Re: Trouble shooting Linux start up

Post by OppaErich » Fri Jul 15, 2011 5:36 pm

No worky on Fedora 15. :(


rxtx is installed, there is no librxtx-java available, /usr/lib/jni is in the library path

java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-i386)
OpenJDK Server VM (build 20.0-b11, mixed mode)
Last edited by cobbj on Mon Jul 18, 2011 3:51 pm, edited 1 time in total.
Reason: Watch the language! The way the spam filter works is that you need to do 3 posts before attaching images or links. Without a spam filter this board would be a lot less usable...

User avatar
hairymnstr
Posts: 50
Joined: Wed Jun 15, 2011 10:03 am
Location: Bristol, UK
Contact:

Re: Trouble shooting Linux start up

Post by hairymnstr » Fri Jul 15, 2011 7:52 pm

That's the right package for Fedora I checked it out when I wrote the Wiki page.

Can you post the output if you run it from the terminal (i.e. cd into the installed folder and run "./mpide"). Hopefully it's giving some error messages. What architecture are you on, i386 or x64?
#include <coffee.h> // The start of all good programming sessions

OppaErich
Posts: 17
Joined: Sat Jun 11, 2011 3:50 pm

Re: Trouble shooting Linux start up

Post by OppaErich » Sat Jul 16, 2011 11:31 am

hairymnstr wrote: Can you post the output if you run it from the terminal (i.e. cd into the installed folder and run "./mpide"). Hopefully it's giving some error messages.
I can't as I wrote already, looks too spamy :roll:
hairymnstr wrote: What architecture are you on, i386 or x64?
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-i386)
OpenJDK Server VM (build 20.0-b11, mixed mode)

Code: Select all

java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver

OppaErich
Posts: 17
Joined: Sat Jun 11, 2011 3:50 pm

Re: Trouble shooting Linux start up

Post by OppaErich » Sun Jul 17, 2011 10:49 am

Some more testing:

openSUSE 11.4 64bit - runs out of the box

Mageia 1 32bit - rxtx was installed, after installing librxtx2.1 and librxtx-devel the GUI is running but
Serial port is greyed out and

Code: Select all

java.lang.NoClassDefFoundError: Could not initialize class gnu.io.RXTXCommDriver thrown while loading gnu.io.RXTXCommDriver
in terminal window.

FC15 - GUI does not even start

User avatar
hairymnstr
Posts: 50
Joined: Wed Jun 15, 2011 10:03 am
Location: Bristol, UK
Contact:

Re: Trouble shooting Linux start up

Post by hairymnstr » Mon Jul 18, 2011 11:01 am

Sorry, missed those details. You might have more success posting console output if you use the "code" tags.

Only thing I can think is that /usr/lib/jni isn't where rxtx is being installed for some reason. Can you see if that's where it was installed to?
#include <coffee.h> // The start of all good programming sessions

OppaErich
Posts: 17
Joined: Sat Jun 11, 2011 3:50 pm

Re: Trouble shooting Linux start up

Post by OppaErich » Tue Jul 19, 2011 11:01 am

:oops: Jesus Christ, haven't thought of that. We're on the the right trail methinks.

Code: Select all

[oppa@core2duo mpide-0022-chipkit-linux32-20110619]$ rpm -ql rxtx
/usr/lib/rxtx
/usr/lib/rxtx/librxtxI2C-2.2pre1.so
/usr/lib/rxtx/librxtxI2C.so
/usr/lib/rxtx/librxtxParallel-2.2pre1.so
/usr/lib/rxtx/librxtxParallel.so
/usr/lib/rxtx/librxtxRS485-2.2pre1.so
/usr/lib/rxtx/librxtxRS485.so
/usr/lib/rxtx/librxtxRaw-2.2pre1.so
/usr/lib/rxtx/librxtxRaw.so
/usr/lib/rxtx/librxtxSerial-2.2pre1.so
/usr/lib/rxtx/librxtxSerial.so
/usr/share/doc/rxtx-2.2
/usr/share/doc/rxtx-2.2/AUTHORS
/usr/share/doc/rxtx-2.2/COPYING
/usr/share/doc/rxtx-2.2/ChangeLog
/usr/share/doc/rxtx-2.2/INSTALL
/usr/share/doc/rxtx-2.2/README
/usr/share/doc/rxtx-2.2/README.IPAQ
/usr/share/doc/rxtx-2.2/README.OSX
/usr/share/doc/rxtx-2.2/README.SCO
/usr/share/doc/rxtx-2.2/TODO
/usr/share/java/RXTXcomm.jar     <- this is missing ? 
[root@core2duo ~]# ls /usr/lib/j
jack/        java-1.5.0/  java-1.7.0/  jna/         jvm-commmon/ jvm-private/
java/        java-1.6.0/  java-ext/    jvm/         jvm-exports/ 
/usr/lib/jni does not exist. I'll try adding /usr/share/java to the library path.

Well, still no joy.

Code: Select all

...
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
[oppa@core2duo mpide-0022-chipkit-linux32-20110619]echo $LD_LIBRARY_PATH
/usr/lib/alliance/lib:/usr/lib/jni:/usr/lib/alliance/lib:/usr/share/java/ 

User avatar
hairymnstr
Posts: 50
Joined: Wed Jun 15, 2011 10:03 am
Location: Bristol, UK
Contact:

Re: Trouble shooting Linux start up

Post by hairymnstr » Tue Jul 19, 2011 11:22 am

I think it's actually the .so (shared objects, linux equivalent of a .dll) that you want in your path. Try adding /usr/lib/rxtx to the end of LD_LIBRARY_PATH.

I'm not sure if the jni thing is a red-herring and to do with using sun-java rather than iced tea which I think you're using.
#include <coffee.h> // The start of all good programming sessions

OppaErich
Posts: 17
Joined: Sat Jun 11, 2011 3:50 pm

Re: Trouble shooting Linux start up

Post by OppaErich » Tue Jul 19, 2011 11:30 am

Got it, CLASSPATH is the name of the game.

So if you're running Fedora 15, add

Code: Select all

export CLASSPATH=/usr/share/java/RXTXcomm.jar: 
to your ~/.bashrc

Thank you hairymnstr

User avatar
hairymnstr
Posts: 50
Joined: Wed Jun 15, 2011 10:03 am
Location: Bristol, UK
Contact:

Re: Trouble shooting Linux start up

Post by hairymnstr » Tue Jul 19, 2011 12:00 pm

Excellent, glad that's working, I've added a line to the Wiki with your solution for future reference.
#include <coffee.h> // The start of all good programming sessions

Post Reply