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:25

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



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. plz send inheritance concept,how to use final,thi
View Tutorial          By: sobha at 2010-02-14 08:29:33

2. Hi,
i executed this program successfully in

View Tutorial          By: Praveen at 2010-07-14 01:05:37

3. Great example - easy to understand!
View Tutorial          By: George at 2009-12-30 03:48:37

4. Thank you for sharing your knowledge. =>
View Tutorial          By: Condel Batac at 2013-02-03 23:17:26

5. thanks a lot,nicely explained
View Tutorial          By: dhanushka at 2014-08-13 14:40:37

6. Good Explanation.
View Tutorial          By: Ashishkumar Haldar at 2013-01-03 11:47:25

7. plz can u give me code for key excange b/n pda &am
View Tutorial          By: visnas at 2009-05-04 20:18:32

8. i want to sending sms code in java. send me that c
View Tutorial          By: Montu at 2011-06-01 15:15:56

9. Excellent
View Tutorial          By: Dev at 2008-08-01 02:41:25

10. Hey Narayanan, maybe you should check out Vesijama
View Tutorial          By: Benny Bottema at 2009-05-03 14:27:07