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 » How to compile and run JMS Application

Post new topic  Reply to topic
 How to compile and run JMS Application « View previous topic :: View next topic » 
Author Message
reddy_kal
PostPosted: Tue Nov 05, 2002 3:47 pm    Post subject: How to compile and run JMS Application Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Wed Nov 06, 2002 11:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
reddy_kal
PostPosted: Wed Nov 06, 2002 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
RogerLacroix
PostPosted: Wed Nov 06, 2002 9:26 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Did you install the MQ SupportPac MA88?

later
Roger...
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
reddy_kal
PostPosted: Thu Nov 07, 2002 1:24 pm    Post subject: Reply with quote

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
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 » How to compile and run JMS Application
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.