|License Type||SaaS & On-Premise|
|Agent Mode||Assess & Protect|
|Main Product Category||Java Agent|
I see the following error when starting my application with the Java agent:
-javaagent failed, missing ZIP or bad...
This means that you set up the
-javaagent switch properly, but used an incorrect path for
We recommend using a fully qualified path while setting up the switch to prevent any relative path confusion, i.e.:
[joe@localhost /~#] set JAVA_OPTS=$JAVA_OPTS -noverify -javaagent:../contrast.jar # Bad! Relative path may be interpreted incorrectly by the launcher.
Using fully-qualified paths fixes everything:
[joe@localhost /~#] set JAVA_OPTS=$JAVA_OPTS -noverify -javaagent:/usr/share/java/lib/contrast.jar # Good! Everyone sees this path the same.
If it still fails, double check the path to the
contrast.jar file correctly and make sure the user running the server has the correct filesystem privileges to read the file and its parent directory.