Comment on Tutorial - Sample Java program shows how to write to COM port using Java. By Johanes



Comment Added by : Ashkan

Comment Added at : 2009-12-19 21:51:19

Comment on Tutorial : Sample Java program shows how to write to COM port using Java. By Johanes
Hello,

I've got javax.comm and followed carefully the installation guide on Linux(ubuntu9.04), when I try to run java BlackBox I get error below:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/NoSuchPortException
Caused by: java.lang.ClassNotFoundException: javax.comm.NoSuchPortException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: BlackBox. Program will exit.

Please help. what should I do?


View Tutorial