I saw the note on the README.md about adding tools.jar to the classpath, But that didn't fix this error for me. I had to add it to the bootclasspath -- and also the following code in Attachmain.java was returning null:
clazz.getProtectionDomain().getCodeSource()
...so this patch adds an alternate way of locating the path of the Agent's jar file.
Let me know if you've got any questions, thanks for such a nice little utility.
--Erik
Hi,
I saw the note on the README.md about adding tools.jar to the classpath, But that didn't fix this error for me. I had to add it to the bootclasspath -- and also the following code in Attachmain.java was returning null:
clazz.getProtectionDomain().getCodeSource()
...so this patch adds an alternate way of locating the path of the Agent's jar file. Let me know if you've got any questions, thanks for such a nice little utility. --Erik