Talk:Using RXTX

From Rxtx

Jump to: navigation, search

error with finding files

Hi,

I followed the linux installation of the rxtx libraries, and placed the librxtxSerial.so 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-1.5.0.10/jre/bin/java -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(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Please post questions to the mailing list.

Personal tools