Programming Tutorials

Comment on Tutorial - List all the serial and parallel ports in your system using Java By Ashish



Comment Added by : Julen

Comment Added at : 2010-07-18 18:39:29

Comment on Tutorial : List all the serial and parallel ports in your system using Java By Ashish
I changed import javax.comm.*; for this line import gnu.io.CommPortIdentifier

and I'm getting the following output:

java.lang.NoClassDefFoundError: serial_proof/Main
Caused by: java.lang.ClassNotFoundException: serial_proof.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: serial_proof.Main. Program will exit.
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

I think I installed RXTX API properly.

Could somebody tell me whats wrong?

AT: Julen


View Tutorial