cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Java application, starts from .bat file. Would like to load JAVA agent from .bat file

Does anyone know how to load a java agent from the .bat file with java option. My agent path is as follows. -agentpath:"C:\Program Files (x86)\Dynatrace\Dynatrace Agent 7.0\agent\lib64\dtagent.dll"=name=AgentGroup,collector=10.1.1.1:9999


1 REPLY 1

Joe_Hoffman
Dynatrace Leader
Dynatrace Leader

Can I assume your .bat file contains a line that starts up java? Such as:

java -xmx10m -classpath c:\me\you\them.jar MyStartupClass

Why not add the -agentpath argument to that java line?