Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans web application - excluding the JAR while building the WAR

 
Santhosh Reddy Mandadi
Greenhorn
Posts: 11
Android Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys - I'm using Netbeans IDE for developing the web applications and I've some JARs available in the application server which doesn't need to be with WAR but we needed them to compile and run locally. Is there an option in Netbeans to exclude the JAR file while building the WAR file?


Thanks

Santhosh
 
Santhosh Reddy Mandadi
Greenhorn
Posts: 11
Android Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys - I found the problem myself. I've all the libraries under my lib folder and added them to the project class path. Since the build is copying the entire content in the project, my library is also copying even though I've unchecked the package check box against the library.

So, don't put the library in your lib folder if you want to exclude that in the WAR built.


Thanks

Santhosh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic