• 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

NetBeans jar usage priority

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, javaranch.

I want to compile some jms code in NetBeans, but i am stuck and frustrated with an exeption which i got during compilation.
I have such code frangment



which is highlighted by NetBeans as unable to compile.

I investigated a little bit and figured out, that i have to use newer library which knows about "@Resource(lookup=)" injection, so i have added the library (glassfish\modules\endorsed\javax.annotation.jar) to the project (properties->libraries->compile->add jar/folder), but netbeans is still using the default one from JDK and i am getting the error. How could i make NetBeans to use the added one instead of the default one? I have found how to do it in eclipse, but i do not know how to do it in NetBeans. Could you advise me where should i put the library to make it available for my class?



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic