aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes NetBeans jar usage priority Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "NetBeans jar usage priority" Watch "NetBeans jar usage priority" New topic
Author

NetBeans jar usage priority

Nik Braine
Greenhorn

Joined: Aug 28, 2012
Posts: 2
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?



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NetBeans jar usage priority
 
Similar Threads
JMS in Stateless Bean
JMS: Cannot initialize ConnectionFactory
Unable to push messages in JBoss-JMS queue
@Resource For A Non-EJB
JMS - Connection Factory