Agent start command consists of the following:
- Environment variables
- Path to tested java
- JVM Arguments
- Classpath
- Agent class: com.sun.javatest.agent.AgentMain
- Agent options
For Oracle's reference implementation the command to start a passive agent can look like the following:
@{java.home}/bin/java -cp @{testsuite}/classes:@{testsuite}/lib/javatest.jar:@{testsuite}/lib/jtjck.jar
-Djava.security.policy=@{testsuite}/lib/jck.policy -Djavatest.security.allowPropertiesAccess=true
com.sun.javatest.agent.AgentMain -passivePort @{port}
The following patterns will be substituted with a real value:
- value for @{port} will be taken from "Passive Port" question
- @{testsuite} will be replaced with the absolute path to the test suite
- @{java.home} will be replaced with the path specified in "Java Launcher" question or calculated from the path to Java Compiler with assumption that both Java and Java Compiler executables are in bin sub-directory of java home
Correct path to tested java in the default answer above manually if needed.