Compiling probes to be applied statically from the command line

Before you can apply a new or modified probe from the command line, you must compile it.

To compile a probe:
  1. In the Navigator or Package Explorer view, right-click the Probekit source file (probe file) that contains the probe that you want to compile.
  2. Click Probekit > Compile. This command generates the following files:
    Generated File File Name (based on a Probekit source file sample.probe) Comments
    A Java™ source code file based on the probe specifications sample_probe.java This file is always generated in the src directory.
    Class files that contain the compiled probe fragments, as well as the supporting code that executes when you run your instrumented application sample_probe*.class

    Eclipse generates this file automatically only if your workspace is set to auto-build modified resources. Otherwise, click Project > Build Project or Project > Build All to generate it.

    This file is generated in the bin directory if one is configured; otherwise it is generated in the src directory.

    A file that contains instructions for the byte-code instrumentation engine sample.probescript This file is always generated in the src directory.

If your probe contains references to other packages and classes, it may be necessary to change the probe's project settings so that the compile-time references can be resolved. To change these settings, click Project > Properties, and go to the Java Build Path page.

You can now apply your probe. For instructions, read Applying compiled probes statically from the command line
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.