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



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. I'm a begner but i dont know the way to ask quisti
View Tutorial          By: sajid kahn at 2013-05-23 19:15:26

2. sir, i need java code to display position and velo
View Tutorial          By: Sandhya Yadav at 2015-08-20 07:16:04

3. nice
View Tutorial          By: knraju at 2012-04-13 13:49:57

4. Hi, I don't have any GSM modem. Will it work if I
View Tutorial          By: Arif at 2008-10-09 11:29:14

5. This site providing excellent knowledge about stru
View Tutorial          By: Bellamkonda at 2009-11-12 02:37:44

6. Can anybody tell me how to send and receive SMS us
View Tutorial          By: Bharat Lahori at 2010-02-04 07:14:19

7. Great help
View Tutorial          By: Rajeshvar at 2009-11-04 08:43:09

8. this helps a lot
View Tutorial          By: Ashar at 2010-04-28 04:47:36

9. By running ListPorts, I am not getting any output
View Tutorial          By: Srinivasa Rao at 2009-04-02 05:17:20

10. Guys can you send me complete program for recievei
View Tutorial          By: KEVIN at 2011-06-10 21:52:04