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



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. but need in the case of radio buttons
View Tutorial          By: vishnu at 2011-07-21 11:39:26

2. the best site i have found so far for clearing my
View Tutorial          By: darkknight at 2013-06-05 05:54:10

3. Nice basics. Very helpful
View Tutorial          By: Gorav at 2011-11-11 12:46:28

4. what if i use multiple switch statement, is it wor
View Tutorial          By: earl at 2012-01-29 04:10:25

5. thanx nice explanation...
View Tutorial          By: vignesh at 2012-07-15 20:12:22

6. Can u please help me. I run the SerialConnection p
View Tutorial          By: Praseetha.K at 2009-01-23 09:34:35

7. This is a simple app and its working good.......
View Tutorial          By: sathish at 2012-04-23 12:16:07

8. Hi Jgan,
Its very useful ad nice article .

View Tutorial          By: pramod at 2012-01-16 13:21:35

9. Nice and easy to understand......Thanks for same
View Tutorial          By: vikas at 2011-07-21 07:44:30

10. thanks becase i am very confuse what is work how t
View Tutorial          By: arvind at 2011-01-09 14:41:42