Upgrade the Java agent

To ensure that you have the most up-to-date version of New Relic, refer to the Java agent release notes. If your agent is outdated, follow this procedure. These steps describe replacing some of the current contents of your agent root directory containing the New Relic Java agent (newrelic.jar) with newly downloaded contents from the New Relic UI.

Upgrade procedures

To identify which version of the Java agent you're currently using, run java -jar newrelic.jar -v. Your Java agent version will be printed to your console.

Back up the entireJava agent root directory to another location. Rename that directory to NewRelic_Agent#.#.#, where #.#.# is the agent version number.