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



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. download jdk
View Tutorial          By: alireza esfandyarinezhad at 2011-03-07 11:52:55

2. Very nice article.
Thank you

View Tutorial          By: Ahmed Adel at 2013-02-11 18:33:51

3. thanks for providing data which is usefull to begi
View Tutorial          By: jeyakumar j at 2010-07-06 09:46:17

4. i have to retrieve data from database which is on
View Tutorial          By: abhishek at 2012-04-05 05:04:01

5. Very useful. Thank you. Would be interesting to kn
View Tutorial          By: Sergei at 2009-02-07 19:18:46

6. NO NO NO!!
120º not is 2.09439

View Tutorial          By: jsError at 2012-02-05 22:46:15

7. Nothing that hasn't been said before, but I wasn't
View Tutorial          By: Calvin at 2010-03-22 20:43:10

8. I did'nt manage to run the program . I've added th
View Tutorial          By: Bull at 2012-01-01 16:28:20

9. Sometimes java do support operator overloading as
View Tutorial          By: Gunjan Srivastava at 2011-07-06 09:14:00

10. could u pls tell me whcih class is implemted by it
View Tutorial          By: AMIT at 2009-10-04 00:21:30