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. hi iam new to java i need simple java programs pls
View Tutorial          By: naga at 2010-10-06 03:45:18

2. How to download a pdf file from the server and sav
View Tutorial          By: harsha at 2013-08-12 07:52:22

3. Hi guys, What is the best way to connect to mysql
View Tutorial          By: veron at 2010-09-11 16:13:25

4. thanks brother i hope this is most important for e
View Tutorial          By: manglesh upadhyay at 2012-09-26 04:40:41

5. w0w amazing
View Tutorial          By: elvin at 2009-01-05 01:00:13

6. better
View Tutorial          By: sanjeev at 2010-06-12 10:38:04

7. Helpful..
View Tutorial          By: syam at 2009-12-29 07:14:05

8. plz give me for css coding
View Tutorial          By: anil mani at 2008-04-19 01:20:06

9. hi.. how can i extrate day, month, year from date
View Tutorial          By: avkash at 2010-10-03 05:19:58

10. I am receiving an error as
Error java.lan

View Tutorial          By: pablo at 2014-08-03 16:10:55