Users are able to include external third party libraries into the Java configuration code to be implemented by their functions and classes by following these steps:
Adding new third party libraries must be done with care as there could be a chance that it might conflict with existing third party libraries.
- Download or copy the third party library file onto the server where the Java development environment is.
When third party library files are used for compilation dependencies of the Java configuration code, the library files will need to be stored in the extlib directory in the agent project directory for the compilation to be executed successfully.
Example - Adding to extlib directory
The following example shows the example project that was setup in the Java setup guide.
mv example_lib.jar /home/mzadmin/agent1/helloWorld/extlib/
Any third party library files that are required for runtime dependencies on the Java configuration code needs to be added into the lib directory in $MZ_HOME
Example - Adding to lib directory
mv example_lib.jar $MZ_HOME/common/lib/