One of the things you will need in the initial stage of creating custom Java services is the ability to add things to the classpath. The classpath is the set of locations in which Java looks for classes and packages. If it is not on the classpath, we cannot use it in Java. Therefore, we need to add any additional classes we wish to use in our Java service to the classpath before we can use them. Where files should go to get on the classpath is driven by what they are and their desired reach.
JAR files (.jar
) and compiled class files (.class
) specific to a project are added to that project's root lib
folder. For a project named Project1
, this would be the /projects/Project1/lib
folder within the WaveMaker home folder. JAR files placed in the lib
folder are copied into /WEB-INF/lib
as part of preparing the project for deployment, including the local deployment when using the Run button. You do not want to put files directly into /WEB-INF/lib
. Use of the lib
...