• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Just trying to get JMS to work on a project

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

Thanks
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Cheers
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll move this to our IDE forum.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic