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. Hi mate,
When I compile the DomParserExampl
View Tutorial By: Suresh Kumar D at 2013-06-25 07:06:19
2. I want to use concept of overriding and i want to
View Tutorial By: Aniket at 2013-06-20 10:23:10
3. 0
View Tutorial By: zareen at 2011-08-20 08:27:28
4. Very concise, but it would be more helpful without
View Tutorial By: Randy at 2010-11-17 14:16:01
5. wats the output ?
View Tutorial By: siri at 2011-10-25 08:20:10
6. i got error like this java.lang.RuntimeException:
View Tutorial By: Saliya at 2014-08-22 10:12:16
7. Hello,
your solution is kinda overk
View Tutorial By: Hdm-Student at 2010-06-16 08:10:51
8. to get more and clear information about java progr
View Tutorial By: SWARNA at 2010-09-13 04:23:10
9. Dear sir i am complete my B.Tech in this year but
View Tutorial By: Sarvesh at 2012-04-17 15:16:46
10. Line 11 says:
cout << "Here's a
View Tutorial By: Nrom at 2012-06-26 20:16:52