NoClassDefFoundError in jar file
1 posts in topic
Flat View  Flat View

Posted By:   Alf_Gonzales
Posted On:   Wednesday, June 19, 2002 05:54 AM

I wrote a small MQ/Java program, which I encapsulate in a jar file.

If I include in the jar the com.ibm.mq classes, it works fine. But if I include only the classes that I have wrote, it launches de following exception, when run it:

Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/mq/MQException

Im sure the PATH and CLASSPATH are ok, because if I execute:
javap com/ibm/mq/MQException
it shows all the methods of the class.

Some help will be apreciated. Thanks



Re: NoClassDefFoundError in jar file

Posted By:   AlessandroA_Garbagnati  
Posted On:   Wednesday, June 19, 2002 06:15 AM


The java.lang.NoClassDefFoundError means that the Java compiler isn't able to find the specific class.

Can you post the CLASSPATH (not PATH) of your java application. Maybe this is not correct.
About | Sitemap | Contact