This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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?



 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic