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

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

Java program to check if user input is an even number

Archived Comments

1. how about if you attach microsoft word documents?p
View Tutorial          By: gian at 2012-01-06 03:11:44

2. really really very good
thanks all
a

View Tutorial          By: bade3 at 2010-01-01 18:52:15

3. why 27's example is prone to a deadlock ? when pro
View Tutorial          By: kaka at 2011-08-14 00:59:41

4. This came out of a book
View Tutorial          By: Kyle Bradley at 2010-04-12 19:48:12

5. Hi Rahul,How to run this program kindly send me th
View Tutorial          By: Das at 2008-09-04 00:53:02

6. Thanks for the tutorial,

I have a q

View Tutorial          By: rajendra at 2013-04-29 15:37:28

7. good for learners
View Tutorial          By: muhammed at 2012-11-20 10:38:28

8. thanks for your code
could you send me the

View Tutorial          By: nocturne at 2009-01-09 01:57:05

9. hi issac thank you for your sample. can you please
View Tutorial          By: edwin at 2009-05-20 22:04:14

10. Thanks a LOT !!
I was confused with this !

View Tutorial          By: rishabhsethi at 2012-10-31 15:07:07