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. Very good. Excellent examples and easy to understa
View Tutorial          By: Fernando Basso at 2012-09-30 22:17:56

2. hey guys the talk waz about main
hey man w

View Tutorial          By: shivam at 2011-07-09 11:45:54

3. I find dis site very educating
View Tutorial          By: Kensho at 2009-05-09 05:18:57

4. Hii... pls how can I create a aerver with an inter
View Tutorial          By: WAZIRI at 2010-03-16 11:12:11

5. Good example thank you so much
View Tutorial          By: Albadri at 2011-05-14 15:48:17

6. I have followed all steps but it is giving null po
View Tutorial          By: she at 2013-01-14 06:02:27

7. THANKS you for having this site. it help me a lot
View Tutorial          By: fermilita at 2012-01-04 11:45:53

8. Why can't you just use an array for something like
View Tutorial          By: Andrea at 2012-10-18 00:17:48

9. very Good machi.......
View Tutorial          By: Janani at 2013-03-04 06:37:47

10. Better theory for those who have just started.

View Tutorial          By: kunal at 2010-05-13 05:55:05