|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
java.lang.NoClassDefFoundError |
« View previous topic :: View next topic » |
Author |
Message
|
midirectorio |
Posted: Wed Jun 19, 2002 12:15 am Post subject: java.lang.NoClassDefFoundError |
|
|
Newbie
Joined: 19 Jun 2002 Posts: 5
|
Hi,
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:
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
Alf. |
|
Back to top |
|
 |
fajarhto |
Posted: Thu Jun 20, 2002 7:22 pm Post subject: |
|
|
Newbie
Joined: 28 Jun 2001 Posts: 3 Location: Indonesia
|
I'm sure the problem is CLASSPATH for com.ibm.mq.jar, please check again, because com/ibm/mq/MQException class is in that jar.
It happened to me before ... |
|
Back to top |
|
 |
midirectorio |
Posted: Thu Jun 20, 2002 10:53 pm Post subject: |
|
|
Newbie
Joined: 19 Jun 2002 Posts: 5
|
Thanks¡¡¡
Indeed the problem was with the classpath. I have several JDKs installed on my machine, and then ..... |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|