Install the Java agent
There are several ways to install the Java agent depending on your situation. You might want to consider where you want to use Contrast (for example, Assess in your development environment or Protect in your production environment), your existing build tools, and how your application is deployed.
Tip
If you are using multiple agent-based technologies in parallel with the Contrast Java agent, ensure that you specify the Contrast Java agent as the first agent that loads at startup. For example:
java -javaagent:contrast.jar -javaagent:newrelic.jar
Loading the Contrast Java agent first helps to limit performance impacts.
Quick start
Just want to try out the Java agent and see how it works? Check out this Java Quick Start Guide.
Basic installation
To install the Java agent in most situations (like in an application server like Tomcat, or a container like Docker), choose a repository and follow these instructions to download and install the agent:
Build-integrated installation
If you are using Assess in a development environment, and you want to set the build outcome in an existing software project if vulnerabilities are found, install the agent with: