ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoClassDefFoundError

Post new topic  Reply to topic
 java.lang.NoClassDefFoundError « View previous topic :: View next topic » 
Author Message
midirectorio
PostPosted: Wed Jun 19, 2002 12:15 am    Post subject: java.lang.NoClassDefFoundError Reply with quote

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
View user's profile Send private message
fajarhto
PostPosted: Thu Jun 20, 2002 7:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
midirectorio
PostPosted: Thu Jun 20, 2002 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoClassDefFoundError
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.