Create a Java Knowledge Base file in Eclipse
You can add methods to the Java Knowledge Base (JKB) file from the editor, the Package Explorer or the Outline view.
- To create a JKB file for a project instead of a workspace, you must first enable project-specific settings (right-click the project, click Properties > Klocwork and select Enable project specific settings).
- Double-click an issue in the Klocwork Issues view to see the issue highlighted in the source code display. (You can also use traceback information in the Klocwork Details view to highlight methods of interest.)
- Right-click the method in the editor and select Klocwork > Add to Knowledge Base.
- Add the appropriate JKB annotation and save the file.
- Re-run the Klocwork analysis to test your JKB file.