You're hitting the issue described in the important note section of this document: http://www.eclipse.org/tptp/platform/documents/probekit/probekit.html#important
Dynamic instrumentation uses the boot class loader to load the probe class. This raises a problem when helper classes/JARs need to be used in a probe. There are two ways you can make use of the external JARs:
1) You can either include the helper JARs in your BOOTCLASSPATH by using the -Xbootclasspath/p: VM argument
2) You can use reflection to load the helper classes in the "system class loader" (i.e. the class loader that uses CLASSPATH to determine the location of its classes). To do this, take a look at ProfilingChartProbe.probe (listed under example 2 of this document: http://www.eclipse.org/tptp/platform/documents/probekit/probekit.html#6.0)
Note that there is a planned 4.3 enhancement to address this issue for dynamic probekit. Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=143251 and feel free to add your email address to the CC list.
Navid Mehregani
"Alex Soto" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 19/07/2006 06:11 AM
|
|
Hello,
I am having a problem with dynamic probe insertion method. I want to
inject some code using dynamic way. This code fragment uses some classes
that are in external jar. In static way all probe insertion works
perfectly (i have the jar into build path of eclipse), but when i try
dynamic way a class not found exception is thrown.
Before starting RAServer, i have export the jar directory to classpath.
Moreover before run the profile, the classpath tab is filled with the
jars that will be used. So what can i do for probing insertion using
dynamic way and external jars? Thank you very much.
Im working on linux ubuntu, and eclipse 3.2 callisto.
La información contenida en el presente e-mail es confidencial y está reservada para el uso exclusivo de su destinatario. Se prohíbe estrictamente la distribución, copia o utilización de esta información sin el previo permiso de su destinatario. Si usted no fuera el destinatario, por favor notifíquelo inmediatamente al remitente y elimine el presente mensaje de su sistema informático.
Information contained in this e-mail is confidential and is intended for the use of the addressee only. Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited. If you are not the intended addressee, please notify the sender immediately by reply and then delete this message from your computer system.
_______________________________________________
tptp-tracing-profiling-tools-dev mailing list
tptp-tracing-profiling-tools-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev
_______________________________________________ tptp-tracing-profiling-tools-dev mailing list tptp-tracing-profiling-tools-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/tptp-tracing-profiling-tools-dev