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. super explaination
View Tutorial          By: santhish at 2011-07-06 05:00:54

2. awesome .i really like this site. thankyou .......
View Tutorial          By: Ramesh at 2013-03-13 15:08:54

3. Actually, looking at the code, it looks as somethi
View Tutorial          By: Johnson at 2009-07-28 08:14:38

4. the article is very useful...!
View Tutorial          By: pravin salame at 2011-05-20 11:58:28

5. thanks for giving the example of abstract class...
View Tutorial          By: mahesh at 2010-04-11 08:20:45

6. 1==how can we use vb.net web service data in JSF?<
View Tutorial          By: kumaraswamy at 2009-01-06 23:56:53

7. Can anybody explain me what are the minimum settin
View Tutorial          By: Ramesh at 2010-02-25 10:28:42

8. Good Luck.........

by Nagarajan(

View Tutorial          By: nagarajan at 2011-06-21 12:14:39

9. Hi Jigar,
The above applicatio

View Tutorial          By: Kiran at 2011-12-26 04:00:24

10. thank u it hlep me a lot gr8.
View Tutorial          By: harish at 2012-03-31 14:34:50