Agent start command consists of the following:
- Environment variables
- Path to reference 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 -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 pattern will be substituted with a real value:
- value for @{port} will be taken from the section of questions dedicated to Remote Passive Agent for distributed tests
- @{testsuite} will be replaced with the absolute path to the test suite
Correct the path to the reference Java in the default answer above manually if needed.