lolsniperftw
Posts: 2
Joined: Fri Apr 15, 2016 8:44 pm

rxtx issue

Fri Apr 15, 2016 8:48 pm

Hello,

when running my java program which uses rxtx , I come across this issue (rxtx lib is installed on the rpi)
Exception in thread "main" java.lang.NoClassDefFoundError: gnu/io/SerialPortEventListener

What do I do to fix this ?

Thanks.

lolsniperftw
Posts: 2
Joined: Fri Apr 15, 2016 8:44 pm

Re: rxtx issue

Sat Apr 16, 2016 1:35 pm

I managed to fix the issue but now another popped up :

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

I tried to put the .so file in the lib and bin folders but none seem to help

Thanks :)

Edit : Solved that as well :/ After messing around moving files to folders I decided to move another version of the .so file to one of the library paths and that worked :)

Return to “Java”