public class Launcher
extends java.lang.Object
| Constructor and Description |
|---|
Launcher() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
findPathJar(java.lang.Class<?> context)
If the provided class has been loaded from a jar file that is on the local file system, will find the absolute path to that jar file.
|
static void |
main(java.lang.String[] args)
for command line to attach this agent.
|
public static java.lang.String findPathJar(java.lang.Class<?> context)
throws java.lang.IllegalStateException
context - The jar file that contained the class file that represents this class will be found. Specify null to let Agent find its own jar.java.lang.IllegalStateException - If the specified class was loaded from a directory or in some other way (such as via HTTP, from a database, or some
other custom classloading device).public static void main(java.lang.String[] args)
throws java.io.IOException,
com.sun.tools.attach.AttachNotSupportedException,
org.apache.commons.cli.ParseException,
com.sun.tools.attach.AgentLoadException,
com.sun.tools.attach.AgentInitializationException
args - command line argumentsjava.io.IOExceptioncom.sun.tools.attach.AttachNotSupportedExceptionorg.apache.commons.cli.ParseExceptioncom.sun.tools.attach.AgentLoadExceptioncom.sun.tools.attach.AgentInitializationException