Use -javaagent without packing agent in a jar

Can I start java -javaagent:myagent.jar some.package.Mainwithout an agent packaged in a jar? Sort ofjava agent.MyAgent some.package.Main

I have the source code for the agent and you want to debug it and then change it, so you don’t need to use it at all -javaagent, but instead choose some.package.Mainto run it through the GUI.

BTrace can connect to the running process using the PID or connect to the process using -javaagent. I am looking for something similar to the first approach (using PID), but I can also start the process from scratch.

+5
source share
1 answer

Java 6 API ( -javaagent), , .

+3

All Articles