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 » General Discussion » ERROR

Post new topic  Reply to topic
 ERROR « View previous topic :: View next topic » 
Author Message
vanilla
PostPosted: Fri Feb 10, 2006 2:03 am    Post subject: ERROR Reply with quote

Newbie

Joined: 19 Jan 2006
Posts: 4

NOW AFTER SETTING THE CORRECT CLASSPATH I CAN COMPILE THE PGM BUT AFTER THAT IT IS SAYING THE FOLLOWING ERROR. PLEASE HELP.

>java amqsbcg -qm QM1 -q LOCAL_QM1
Error getting amqsbcg.properties: amqsbcg.properties (The system cannot find the file specified)
java.io.FileNotFoundException: amqsbcg.properties (The system cannot find the file specified)

amqsbcg.java - starts here
**************************
Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/ResourceException
at amqsbcg.myBrowser(amqsbcg.java:158)
at amqsbcg.main(amqsbcg.java:407)
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Feb 10, 2006 2:56 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

First, please do not start a new topic every time ....

http://www.mqseries.net/phpBB2/viewtopic.php?t=27180&highlight=


Also, it looks like you need connector.jar in yor classpath ...

http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13741901&cat=9&thread=90224&treeDisplayType=threadmode1&forum=283#13741901

http://www.mqseries.net/phpBB2/viewtopic.php?t=23267&sid=1f18bd7fb3f7a9aec618fd5be75bb9b2
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
dgolding
PostPosted: Fri Feb 10, 2006 4:40 am    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

A slightly more descriptive choice of text for your title might be better as well
Back to top
View user's profile Send private message Visit poster's website
HubertKleinmanns
PostPosted: Fri Feb 10, 2006 8:24 am    Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 732
Location: Germany

wschutz wrote:
First, please do not start a new topic every time ....

http://www.mqseries.net/phpBB2/viewtopic.php?t=27180&highlight=


Also, it looks like you need connector.jar in yor classpath ...

http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13741901&cat=9&thread=90224&treeDisplayType=threadmode1&forum=283#13741901

http://www.mqseries.net/phpBB2/viewtopic.php?t=23267&sid=1f18bd7fb3f7a9aec618fd5be75bb9b2

... and use more descriptive headlines - instead of just "error" !
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
EddieA
PostPosted: Fri Feb 10, 2006 11:41 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
>java amqsbcg -qm QM1 -q LOCAL_QM1

Huh. amqsbcg is an C program Not java. Just run that.

And try reading the manual about the "sample" programs.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Feb 10, 2006 11:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

EddieA wrote:
Quote:
>java amqsbcg -qm QM1 -q LOCAL_QM1

Huh. amqsbcg is an C program Not java. Just run that.


There is an amqsbcg.java sample provided on the Sample Code page.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Feb 10, 2006 11:50 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
There is an amqsbcg.java sample provided on the Sample Code page.

And that just goes to show that I don't have time to keep up with everything that's new.

Back to the problem. Is the directory that contains the properties file also in the Classpath.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
wschutz
PostPosted: Fri Feb 10, 2006 5:56 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Eddie, the problem is this:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/ResourceException

Which is why I suggsted the connector.jar.

The properties file is optional and the sample amqsbcg.java works fine without it (I tested it myself)
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » ERROR
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.