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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program 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
Archived Comments
1. hiii frds i want to run this program can i run usi
View Tutorial By: arun kumar ojha at 2011-07-20 00:59:10
2. Thanks man it is very very helpfull for me.
View Tutorial By: qasim azam at 2011-06-15 18:09:35
3. works like a charm, though i didn't understand why
View Tutorial By: primus at 2010-05-19 04:46:18
4. when i was running this code... it is giving me th
View Tutorial By: Nilesh Agrawal at 2012-06-08 15:08:25
5. its gud 2 learn java sim prog
View Tutorial By: Rakesh at 2009-10-04 03:47:01
6. this is really cool......
View Tutorial By: solex at 2009-05-16 04:02:35
7. Hi,
I can run this program.But after
View Tutorial By: jayaraj at 2009-06-05 01:28:18
8. Please tell me the full program for insert values
View Tutorial By: Mohamed Ussain at 2009-08-28 23:14:47
9. hi all,
i successfully executed the
View Tutorial By: praveen at 2010-07-14 04:47:41
10. enter no of line: 5 not fix value
out put i
View Tutorial By: mark at 2013-01-31 14:30:00