NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
345 stars 143 forks source link

Exception in thread "main" java.lang.NoClassDefFoundError rxtx #66

Closed DeepzSandra closed 4 years ago

DeepzSandra commented 8 years ago

Hello Dude!!!

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!!!!!