Store the JAR or class files in the following directory on the Secure Agent machine:
<Secure Agent installation directory>/ext/ctjars
If you use native libraries in a Java transformation on in advanced mode, create the following native-lib and native-bin directories for the .so files and executables, respectively, at the same location as the ctjars directory:
<Secure Agent installation directory>/ext/native-lib
<Secure Agent installation directory>/ext/native-bin
If you update the JAR or class files on the Secure Agent machine, the files take effect the next time you run a job in advanced mode. If the Secure Agent machine stops unexpectedly and the agent restarts on a different machine, add the JAR or class files to the same directory on the new machine.
In production environments, avoid frequent updates to the contents under the ext folder (ctjars, connectors, python, native-lib, native-bin) during workload execution. It can negatively impact long running jobs and cause failures. If necessary, you can set the k8s.infarpm.max.installers=x flag to a higher value than the default of 5, but doing so can cause disk pressure issues on the worker nodes.
If you use a serverless runtime environment, store the files in the supplementary file location. For more information about the supplementary file location, see the Administrator help.