Comment on Tutorial - Sample Java program shows how to write to COM port using Java. By Johanes
Comment Added by : Tebogo Modiselle
Comment Added at : 2014-10-31 08:47:09
Comment on Tutorial : Sample Java program shows how to write to COM port using Java. By Johanes
Hi
I can compile it
root$ javac -cp .:comm-2.0.jar SimpleCOMPortWriter.java but it fails on execution.
Please advise.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/PortInUseException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: javax.comm.PortInUseException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 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
Java program to get location meta data from an image
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
Archived Comments
1. simply nice.. Thank you.
View Tutorial By: Anil at 2011-11-30 06:36:23
2. it works! thanks! :D
however I would like t
View Tutorial By: john at 2012-11-15 10:50:33
3. Hi ngocanh, You are right. The client has to be in
View Tutorial By: Emiley J at 2013-07-14 05:51:35
4. #include<iostream>
#include<conio.
View Tutorial By: XavioR at 2011-01-31 00:53:11
5. In 6th point .....there is a spelling mistake...mi
View Tutorial By: Gnani at 2009-09-22 12:25:59
6. tell me the new page create in java and attach wi
View Tutorial By: muhammad nadeem at 2011-07-06 00:12:08
7. Good examples for beginners.
View Tutorial By: Sagar at 2009-10-16 01:04:46
8. You can also include a hidden field of the same na
View Tutorial By: Stray at 2010-01-05 08:07:47
9. Hi,
I am designing a client server multipla
View Tutorial By: Varun Gupta at 2012-10-15 00:01:57
10. I very grateful with this program it expand my ide
View Tutorial By: Nuhu Abdullahi at 2015-06-13 11:42:38