Author |
Message
|
vanilla |
Posted: Fri Feb 10, 2006 2:03 am Post subject: ERROR |
|
|
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 |
|
 |
wschutz |
Posted: Fri Feb 10, 2006 2:56 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
dgolding |
Posted: Fri Feb 10, 2006 4:40 am Post subject: |
|
|
 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 |
|
 |
HubertKleinmanns |
Posted: Fri Feb 10, 2006 8:24 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
... and use more descriptive headlines - instead of just "error" ! _________________ Regards
Hubert |
|
Back to top |
|
 |
EddieA |
Posted: Fri Feb 10, 2006 11:41 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Fri Feb 10, 2006 11:44 am Post subject: |
|
|
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 |
|
 |
EddieA |
Posted: Fri Feb 10, 2006 11:50 am Post subject: |
|
|
 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 |
|
 |
wschutz |
Posted: Fri Feb 10, 2006 5:56 pm Post subject: |
|
|
 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 |
|
 |
|