I am trying to compile a code which is connecting a MQ through JMS. Now I am getting the compilation error as "package does not exist".

I read in the internet that it is related to classpath but I set the classpath as below:
C:\Program Files\IBM\WebSphere MQ\lib\;C:\Program Files\IBM\WebSphere MQ\Java\lib\providerutil.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\;C:\Program Files\IBM\WebSphere MQ\Java\lib\ldap.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jta.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jndi.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\jms.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\connector.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\fscontext.jar;C:\Program Files\IBM\WebSphere MQ\Java\lib\;C:\Program Files\Java\jdk1.5.0_16\bin;C:\Program Files\IBM\WebSphere MQ\Java\lib\;C:\Program Files\IBM\WebSphere MQ\Java\lib\

My code has the following reference


But I couldn't find "" or "" jar files in my machine.

My machine is running the websphere MQ server & client both are in the same machine. Also the sender & receiver both are in the same local machine "". I can put manually the message in the MQ also through MQClient API no problem.

BTW forgot to mention I have installed JBuilder & I am also very new to JBuilder. The compilation error I am getting when trying to compile through JBuilder. So can be some issue with JBuilder setup also....please advise..........
Please suggest what is wrong.

Who is Participating?
chaitu chaituCommented:
have you opened this code in jbuilder.if you doesn't set these jars properly in classpath in jbuilder then the editor will show red color lines in the code.
kakaliAuthor Commented:
How to set Classpath in JBuilder? I set Classpath in the environment variable.
kakaliAuthor Commented:
Ok I could able to refer the jms jar but my problem is when I try to compile the code in Jbuilder I am getting huge number of errors. I suspect my code folder structure is not correctly set.
My source code reference the package as
what should be my source file folder structure to keep these .java files. Please help me as I am new to Java & JBuilder so I need to understand how it works. I will really appreciate your help in this regard.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.