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
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
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. it's nice linking up here
View Tutorial By: kasadha at 2010-10-28 10:34:36
2. good....
View Tutorial By: Rini at 2013-01-08 10:44:54
3. Question: if clone is a protected method then why
View Tutorial By: siva kiran at 2011-01-20 11:40:23
4. i am newly in java, i want to learn about this and
View Tutorial By: gelen at 2010-11-23 02:57:15
5. public void playSound(String filename) {
View Tutorial By: Rowan at 2014-07-17 10:26:02
6. thumbs up!
View Tutorial By: huang at 2013-03-28 04:02:33
7. thank you...as a beginner this info very useful fo
View Tutorial By: snigdha at 2012-10-17 11:41:39
8. what is the use of int getch(void)
and unge
View Tutorial By: sania at 2014-06-04 17:15:30
9. Nice and easy to understand......Thanks for same
View Tutorial By: vikas at 2011-07-21 07:44:30
10. Seriously very nice explanation.... Thank You
View Tutorial By: Pulkit agrawal at 2012-03-20 10:28:10