cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.noclassdeffounderror

Former Member
0 Kudos

i know that normally this error is because of the classpath and the path, but i think that it is correctly.

my classpath is:

.;C:jorgejdkpruebael apiCOMMAPIcomm.jar;C:j2sdk1.4.2_04lib ools.jar

and the path is:

C:j2sdk1.4.2_04 in

i am using the javax.comm packet, i can compile good the class, but i can´t execute it, it gives me java.lang.noclassdeffounderror.

does anybody know the error?

thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Carl,

it seems, that you have the javax.comm jar(s) added to your build path but not to the classpath used at runtime.

Regards

Stefan

Former Member
0 Kudos

thank you very much, it runs know, but i have another problem, my program doesn´t detect the ports, and i have probed with the SerialDemo.java that comes with the packet that would read the ports, do you know if i have to configure or active them in special way? perhaps in the control panel..

thanks in advance and best regards

Former Member
0 Kudos

No, sorry, this is too much javax.comm specific. I suggest to have a look at the official Sun documentation available for this package.

Best regards

Stefan

Former Member
0 Kudos

thank you very much in any way