The agent provided to this method is a path name to a JAR file on the file system of the target virtual machine. This path is passed to the target virtual machine where it is interpreted. The target virtual machine attempts to start the agent as specified by the {@link java.lang.instrument} specification.That is, the specified JAR file is added to the system class path (of the target virtual machine), and the agentmain
method of the agent class, specified by the Agent-Class
attribute in the JAR manifest, is invoked. This method completes when the agentmain
method completes.
@param agent Path to the JAR file containing the agent.
@param options The options to provide to the agent's agentmain
method (can be null
).
@throws AgentLoadException If the agent does not exist, or cannot be started in the mannerspecified in the {@link java.lang.instrument} specification.
@throws AgentInitializationException If the agentmain
throws an exception
@throws IOException If an I/O error occurs
@throws NullPointerException If agent
is null
.
Loads an agent into the system and makes it ready for execution but does not start execution.
The agentinfo has to
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|