Comment on Tutorial - Read from a COM port using Java program By Steven Lim



Comment Added by : Abhaya

Comment Added at : 2013-02-20 22:42:18

Comment on Tutorial : Read from a COM port using Java program By Steven Lim
I get theses errors and apparrently it cannot find SerialPortEventListener and the import javax.comm.*. Please help. Do I need to add a jar file or something


Exception in thread "main" java.lang.NoClassDefFoundError: SerialPortEvent
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: SerialPortEvent
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 6 more


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. the exampe was really useful........
View Tutorial          By: smitha at 2011-03-10 21:27:55

2. Plz show me how to use main method reccurssively p
View Tutorial          By: Jyoti Bankar at 2011-07-14 10:31:53

3. Enabling IPV6 at Application Level


View Tutorial          By: i want code , can you send me at 2014-12-28 11:43:35

4. its working... thanks.. thank you very much...!!!!
View Tutorial          By: Viswanathan at 2008-08-18 06:54:09

5. Can i have CreateAddressBook.java?? really need it
View Tutorial          By: KIM at 2012-12-02 11:45:20

6. hai
View Tutorial          By: ayyannan at 2011-01-21 21:27:35

7. when I exported the data to excel there is a value
View Tutorial          By: mizhelle at 2015-10-10 13:17:56

8. If you are working with the multi-threaded program
View Tutorial          By: it career at 2010-02-24 00:13:50

9. thanx a lot.............!!!! u r best..........
View Tutorial          By: Pratik at 2010-04-12 12:41:30

10. Legend. Worked first time!
View Tutorial          By: Luke at 2014-12-19 10:10:00