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



Ask a Question

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. good explanation,
Thanks

View Tutorial          By: venkatesh at 2012-01-04 08:43:48

2. Please let me know the SMSConnector number of any
View Tutorial          By: Chandra Shekhar at 2009-04-01 00:21:54

3. yes simple good it wroking goog
View Tutorial          By: durga prasad pavirala at 2009-02-11 03:43:04

4. To determine current location in a file:
{<

View Tutorial          By: Terry at 2009-09-27 13:15:56

5. I am using VS2010 & SAP for crystal report. I
View Tutorial          By: Abdullah Al Mamun at 2011-08-11 23:20:37

6. Simpler example:

import java.io.*;

View Tutorial          By: Joseph Harner at 2011-12-04 23:20:48

7. I want to be programer
View Tutorial          By: somphone at 2015-09-09 11:20:20

8. THANX :)
View Tutorial          By: Saurabh at 2012-01-02 16:13:06

9. java program to maintain the books details like Bo
View Tutorial          By: Prabha at 2013-08-28 12:34:00

10. The arraycopy in a System is static native method
View Tutorial          By: Ashwinkumar.vj at 2011-07-19 09:25:02