Load the Java Agent in a JVM
After configuring the agent settings, you can add the agent to the JVM. The exact steps for doing so vary by framework. The general approach involves specifying the agent as a ‑javaagent argument to the startup command for the JVM.
Ensure to add the -javaagent argument before the -jar argument.
The argument should indicate the location of the Java Agent JAR file:
-javaagent:<agent_home>/javaagent.jar
On Windows, include the drive letter in the path to the agent:
-javaagent:C:<agent_home>\javaagent.jar
-javaagent:C:\\appdynamics\\javaagent.jar
Adding javaagent to the startup script requires a restart of the JVM. If it's not possible to restart the JVM when you are installing the agent and modifying the JVM start up script, you can attach the agent dynamically to the running Java process.
See Agent Installation by Java Framework for more information on how to install Java Agent by Java framework or technology.