I have a class, which has a main, which I'm trying to set as a VirtualMachine's agent.
I could extract it as a jar in eclipse, and add it to the build path, everyt time I change it, but that would be a drag.
this:
File f = new File("/FinalProject/src/finalproje/agent.java");
vm.loadAgent(f.getAbsolutePath());
fails to work.
Is there any way to either make this work, or programmatically compile the .jar file from agent.java?