• /
  • Log in
  • Free account

Install Java agent using Gradle

This document explains how to install the Java agent using Gradle. For information on manually installing the Java agent, see Install the Java agent and Java agent configuration: Config file.

Install agent package using Gradle

  1. Install the New Relic Java agent, using either of these options:

  2. Place newrelic.yml in the same folder as newrelic.jar, unless you specify otherwise in the JVM arg Dnewrelic.config.file.

  3. Configure the newrelic.yml file (or JVM system properties) with your license_key and app_name.

  4. Pass -javaagent:/path/to/newrelic.jar to the JVM running your application server.

  5. Optional: If using the New Relic Java agent API, make the API jar available at compile time by adding it to your application class path.

Generate some traffic for your app, then wait a few minutes for data to appear in the APM Summary page. If nothing appears, follow the troubleshooting procedures.

For more help

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

Create issueEdit page
Copyright © 2021 New Relic Inc.