File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Just trying to get JMS to work on a project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Just trying to get JMS to work on a project" Watch "Just trying to get JMS to work on a project" New topic

Just trying to get JMS to work on a project

Jackie Gleason

Joined: Aug 12, 2008
Posts: 8
So I am having a little trouble just trying to access the javax.jms classes, so this should be a fairly easy one.

I copied J2EE.jar into my jdk/jre/lib folder, however, elcipse doesn't seem to pick up the changes. Restarted eclipse and still nothing, intellisense won't pick up the Java.jms package and I cannot use the connection objects

What am I doing wrong?

Bruno Kinoshita

Joined: Aug 02, 2006
Posts: 6
Hummm, I'd this problem some time ago... very similar. I believe that what I'd was a problem between the Java version of the classes. Check you Java SDK in your project and the version of classes in this Jar.

I hope this helps you.


Kinoshita, Bruno
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

I'll move this to our IDE forum.

[My Blog] [JavaRanch Journal]
Peter Johnson

Joined: May 14, 2008
Posts: 5852

I do not think that Eclipse will automatically pick up JAR files located in the jre/lib folder (though, honestly, I have never tried it because I never placed anything there - it is not a good idea).

Instead do this. Right-click on your project in Eclipse, select Properties and go to Java Build Path, click on the Libraries tab, and add the JAR file there.
[ November 12, 2008: Message edited by: Peter Johnson ]

JBoss In Action
subject: Just trying to get JMS to work on a project
It's not a secret anymore!