You see error messages when starting the app server for your Java application. For example:
Error opening zip file: newrelic.jarError occurred during initialization of VMAgent library failed to init: instrument
The path to the Java agent
jar file must be fully qualified in the
-javaagent JVM switch. If the path is not correctly specified, errors will be thrown on app server startup, and the JVM will exit.
To correct this problem, specify the full path to the
newrelic.jar file in the
-javaagent switch. For example, if the
newrelic.jar file is in a directory named
newrelic inside the Tomcat home directory /home/tomcat, specify the switch like this:
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.