After compiling a probe, you can apply it from the command line
using the command java ProbeInstrumenter.
To apply a probe from the command line:
- Make sure that your classpath environment variable contains the
full path and filename of the probekit.jar file. The probekit.jar file
is located in the org.eclipse.hyades.probekit subfolder
of your Eclipse plugins folder.
- Make sure that your path environment variable contains the full
path to the subfolder of org.eclipse.hyades.probekit that
is appropriate for your platform:
-
os\win32\x86 for
Microsoft® Windows®
os/solaris/sparc for
Solaris
-
os/linux/x86 for
Linux™
- On the command line, enter the command java ProbeInstrumenter,
followed by the name of the probescript file for the probe that you
want to use, and a list of items to instrument. The list items
can be class files, jar files, or folders. For example:
java ProbeInstrumenter myprobe.probescript c:\myproject_path\myprogram.jar
ProbeInstrumenter instruments the class files that are included in
your list and that match the probe's target specifications.
Tip: You
can apply multiple probes to a project. Compile each probe separately. Then
concatenate the resulting probescript files into a single file, and
pass the name of the concatenated file to ProbeInstrumenter when you apply
the probe. Alternatively, you can apply the probes to the project one at a
time.