Create a Java Knowledge Base file in Eclipse

This section explains how to create a Java Knowledge Base (JKB) file in Eclipse.

Add methods to the JKB file from the editor, Package Explorer, or Outline view.
  1. To create a JKB file for a project instead of a workspace, enable project-specific settings:
    1. Right-click the project.
    2. Select Properties > Klocwork > Enable project-specific settings.
  2. Double-click an issue in the Klocwork Issues view to highlight it in the source code.
  3. Use traceback information in the Klocwork Details view to highlight methods of interest.
  4. Right-click the method in the editor and select Klocwork > Add to Knowledge Base.
  5. Add the appropriate JKB annotation, then save the file.
  6. Rerun Klocwork analysis to test your JKB file.