src/share/classes/java/lang/instrument/package.html

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:


 257 </dd>
 258 </dl>
 259 </blockquote>
 260 
 261 <p> 
 262 An agent JAR file may have both the <code>Premain-Class</code> and <code>Agent-Class</code>
 263 attributes present in the manifest. When the agent is started on the command-line using
 264 the <code>-javaagent</code> option then the <code>Premain-Class</code> attribute
 265 specifies the name of the agent class and the <code>Agent-Class</code> attribute is
 266 ignored. Similarly, if the agent is started sometime after the VM has started, then
 267 the <code>Agent-Class</code> attribute specifies the name of the agent class
 268 (the value of <code>Premain-Class</code> attribute is ignored).
 269 
 270 <h2>Related Documentation</h2>
 271 
 272 For tool documentation, please see:
 273 <ul>
 274   <li><a href="{@docRoot}/../technotes/tools/index.html">JDK Tools and Utilities</a>
 275 </ul>
 276 
 277 @since JDK1.5
 278 @revised 1.6
 279 
 280 </body>
 281 </html>


 257 </dd>
 258 </dl>
 259 </blockquote>
 260 
 261 <p>
 262 An agent JAR file may have both the <code>Premain-Class</code> and <code>Agent-Class</code>
 263 attributes present in the manifest. When the agent is started on the command-line using
 264 the <code>-javaagent</code> option then the <code>Premain-Class</code> attribute
 265 specifies the name of the agent class and the <code>Agent-Class</code> attribute is
 266 ignored. Similarly, if the agent is started sometime after the VM has started, then
 267 the <code>Agent-Class</code> attribute specifies the name of the agent class
 268 (the value of <code>Premain-Class</code> attribute is ignored).
 269 
 270 <h2>Related Documentation</h2>
 271 
 272 For tool documentation, please see:
 273 <ul>
 274   <li><a href="{@docRoot}/../technotes/tools/index.html">JDK Tools and Utilities</a>
 275 </ul>
 276 
 277 @since 1.5
 278 @revised 1.6
 279 
 280 </body>
 281 </html>