Using JAR Files in Web Modules

To use a JAR file in a web module, you must make the JAR file available to the IDE's class path and to the web server's class path. The easiest way to do this is to place the JAR file in the web module's WEB-INF/lib directory.

Use one of the following methods to add a JAR file to a web module:

The IDE separately mounts all JAR files in the WEB-INF/lib directory so that they are available to the IDE's class path.

An alternative to placing the JAR file in the WEB-INF/lib directory is to place the JAR file in both the NetBeans ext/lib directory and the directory for the web server's shared libraries.


Legal Notices