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:
Find in Tag
Library Repository from the contextual menu.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 the directory for the web server's shared libraries. Then do the following steps to add the JAR to the IDE's class path and code completion database.
To Add a JAR File in the Server's Shared Libraries Directory to the IDE Class Path
Options.
Archive
Files.