How to include jar files in a project

Developers will often want to include jar files in a project. This includes both use by Java Services, license files and JDBC drivers.

Jar files should always be placed in /projects/your project/lib NOT in /project/your project/webapproot/WEB-INF/lib

Jar files in /lib are copied to /WEB-INF/lib as part of the war file deployment and test run (test deployment). Files in /webapproot/WEB-INF/lib are cleared out each time the project is deployed or a war file generated. Jar files in /lib are included in generated war files.

Always place your application jar files in /lib.

If studio requires use of jar files, those jar files also need be copied into the WaveMaker studio installation/WEB-INF/lib directory. The most common situation is JDBC jar files and database import. Studio requires use of the JDBC jar files during import. Testing the connection to a database in studio may require additional jar files in the studio/WEB-INF/lib directory. A license file may in studio/WEB-INF/lib also be required to successfully connect to the database.


      Share/Bookmark
© 2010 WaveMaker Software™ All Rights Reserved.