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 an active agent can look like the following:
@{java.home}/bin/java -cp @{testsuite}/classes:@{testsuite}/lib/javatest.jar:@{testsuite}/lib/jtjck.jar
-Djava.ext.dirs=@{testsuite}/lib/extensions
-Djava.security.policy=@{testsuite}/lib/jck.policy -Djavatest.security.allowPropertiesAccess=true -Djava.rmi.activation.port=@{rmi.port}
com.sun.javatest.agent.AgentMain -activeHost @{host} -activePort @{port}
The following patterns will be substituted with real values:
- values for @{host} and @{port} will be taken from "Agent hosts" question in case of remote agent or the values will be chosen automatically in case of local agent
- value for @{rmi.port} will be taken from a section of questions related to RMI
- @{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.