I have written a JVMTI agent that does the following :
On class load hook send the loaded class byte codes to a separate java process that does ASM byte code instrumentation explanation: the instrumentation does the following : on method entry I get some information and make a JNI call back into the agent to report some information. From within the native call I use JNI to do a findClass and then a getMethodID for the class that was instrumented. The findClass returns NULL! My hunch is that this has something to do with the classpath because if I hardcode something like : findClass("java/lang/Runnable")... it works. Any ideas?