1- copy the jar files into the Server/lib/ folder. If the library is made up of several jar files (for example Hibernate) you can create a subfolder (e.g. Server/lib/hibernate) and copy all those files there.
2- you need to tell the JVM to load the jar files by adding them in the classpath.
This can be done in different ways based on your OS and how you're running the server:
-> Running the server as service/daemon
You should open the conf/wrapper.conf file. In the classpath section add a new entry like this:
Code: Select all
wrapper.java.classpath.XX=/path-to-installation/Server/lib/filename.jar
Where XX is a progressive number. If you're using relative paths it will be slightly different:
Code: Select all
wrapper.java.classpath.XX=lib/filename.jar
-> Running the server standalone (start.sh or start.bat)
Linux/Unix: open the start.sh script with your favorite text editor and add the jar files to the classpath parameter. Make sure to separate each entry with a colon ( : ).
Windows: open the start.bat script with your favorite text editor and add the jar files to the classpath parameter. Make sure to separate each entry with a semi-colon ( ; ).
Once this is done you should stop the server if it's running and start it again