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. Can anybody tell.... what if condition is doing in
View Tutorial          By: Randhir Sambyal at 2013-08-26 06:37:25

2. its amazing for me i learn a lot from it thanks..
View Tutorial          By: sufyan at 2014-10-26 14:39:34

3. nativeFinalize: Error closing Handle 6
and

View Tutorial          By: yash at 2008-05-16 17:43:42

4. explanation is good but i have one doubt what is t
View Tutorial          By: sulthan at 2012-10-09 06:13:14

5. Hi All,

I am new to J2ME Applicatio

View Tutorial          By: golemnagesh at 2010-12-05 22:43:50

6. It won't work for me ;S
View Tutorial          By: jordi at 2011-01-21 08:22:45

7. The code gives the following exception :-
<

View Tutorial          By: waqar at 2012-07-26 17:02:07

8. i need some more basic programes in java
View Tutorial          By: nivin at 2012-10-19 09:14:27

9. can u please explain java scripts for menus.
View Tutorial          By: web designers in kerala at 2011-04-16 02:08:22

10. thanx mitra...it helped alot.
View Tutorial          By: psuyog at 2014-10-10 12:16:26