Talk:Using RXTX

From Rxtx

Jump to: navigation, search

error with finding files


I followed the linux installation of the rxtx libraries, and placed the and the RXTXcomm.jar in the right directories.

I have set the CLASSPATH, the JAVA_HOME and the LD_LIBRARY_PATH directories ok.

but when I run the following application, I seem to not find the right library. is there any reason for this?

thanks, John

/usr/lib/jvm/java-1.5.0-sun- -Djava.library.path=lib SerialAITest /dev/ttyS0 1 11 1

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass( at at at$100( at$ at Method) at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClassInternal(

Please post questions to the mailing list.

Personal tools