Author |
Message
|
reddy_kal |
Posted: Tue Nov 05, 2002 3:47 pm Post subject: How to compile and run JMS Application |
|
|
Acolyte
Joined: 04 Nov 2002 Posts: 73
|
Hi,
I have installed j2sdk1.4.0_02, j2sdkee1.3.1 and set the environment variables.
Classpath = c:\j2sdk1.4.0_02\lib;c:\j2sdkee1.3.1\lib
Path = c:\j2sdk1.4.0_02\bin;c:\j2sdkee1.3.1\bin
I am trying to compile the sample programs which are present in Java site but its giving errors(cannot resolve symbols for the class names(Queue, Connection.........).
Even I have checked with setting
Classpath =.;c:\j2sdkee1.3.1\lib
Path = .;c:\j2sdkee1.3.1\bin
Its giving the same problem
Do I need to set any other variables to compile JMS applications successfully?
Please help me out in this.
Thanks in advance. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Nov 06, 2002 11:04 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
It looks like you are missing the MQ files from your classpath. Mine looks like:
set classpath=.;
c:\MQseries\java\lib\com.ibm.mq.jar;
c:\MQseries\java\lib\com.ibm.mqjms.jar;
c:\MQSeries\java\lib\jms.jar;
c:\mqseries\java\lib\jndi.jar;
c:\mqseries\java\lib;
c:\mqseries\java\lib\providerutil.jar;
c:\mqseries\java\lib\fscontext.jar;
c:\mqseries\java\lib\jta.jar;
c:\mqseries\java\lib\connector.jar; |
|
Back to top |
|
 |
reddy_kal |
Posted: Wed Nov 06, 2002 1:49 pm Post subject: |
|
|
Acolyte
Joined: 04 Nov 2002 Posts: 73
|
Thanks for the reply...
Even after setting the classpath, I am getting the same problem
like..........
This thing I have copied from center. I am still getting more errors.
SampleUtilities.java:31: package javax.jms does not exist
import javax.jms.*;
^
SampleUtilities.java:76: package javax.jms does not exist
public static javax.jms.QueueConnectionFactory getQueueConnectionFactory()
^
SampleUtilities.java:121: package javax.jms does not exist
return (javax.jms.Queue) jndiLookup(name);
^
SampleUtilities.java:143: package javax.jms does not exist
return (javax.jms.Topic) jndiLookup(name);
^
SampleUtilities.java:203: cannot resolve symbol
symbol : class QueueConnectionFactory
location: class SampleUtilities
QueueConnectionFactory queueConnectionFactory = null;
^
SampleUtilities.java:204: cannot resolve symbol
symbol : class QueueConnection
location: class SampleUtilities
QueueConnection queueConnection = null;
^
SampleUtilities.java:205: cannot resolve symbol
symbol : class QueueSession
location: class SampleUtilities
QueueSession queueSession = null;
^ |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Nov 06, 2002 9:26 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
reddy_kal |
Posted: Thu Nov 07, 2002 1:24 pm Post subject: |
|
|
Acolyte
Joined: 04 Nov 2002 Posts: 73
|
Yeah I did.
Now its compiling. There was a problem in the classpath settings.
Anyway Thanks for the response.
Thanks |
|
Back to top |
|
 |
|