Applying probes statically from the command line

You can apply a probe statically from the command line using the command java ProbeInstrumenter.

To apply a probe from the command line:

  1. Make sure that your class path 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.
  2. 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:
    • Windows platform icon os\win32\x86 for Microsoft® Windows®
    • Linux platform icon os/linux/x86 for Linux™
  3. 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 of 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: To apply multiple probes to a project, you can concatenate all the probescript files into a single probescript file, and pass the name of the concatenated file to ProbeInstrumenter when you apply the probe. Alternatively, you can apply the probes one at a time.
You can now run your project and collect data. For instructions, read Running a project with statically applied probes.