Java:
I’m using this code and I’m trying to use it to start RXTX with Arduino. I get the following compile errors:
C:\Users\cwc\java>java SerialTest.java
Exception in thread “main” java.lang.NoClassDefFoundError: SerialTest/java
Caused by: java.lang.ClassNotFoundException: SerialTest.java
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: SerialTest.java. Program will exit.
I followed these directions:
Windows 64-bit
RXTXcomm.jar goes in \jre\lib\ext
rxtxSerial.dll goes in \jre\bin
Please any body help!!!!! (deepzsandra@gmail.com)
Thanks!!!