• /
  • Log in
  • Free account

Errors starting Java app server


You see error messages when starting the app server for your Java application. For example:

Error opening zip file: newrelic.jar
Error occurred during initialization of VM
Agent 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:


For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.