Before you begin

Make sure you use Java the appropriate version of Java

QNX Momentics 4.6 and 4.7 use Java 5 by default. The Klocwork Eclipse plug-in requires Java 7. Specify the JVM for Momentics 4.6 and 4.7 in the qde.ini file (for example, \QNX650\host\win32\x86\usr\qde\eclipse\qde.ini) by adding the following two lines to the beginning of the file:

-vm
<jvm_install_path>\bin

Make sure you're using a supported builder

Momentics uses three types of builders to make C/C++ projects. (Eclipse C/C++ projects use #2 and #3.)

  1. QNX Recursive Make Builder
    • Mandatory for QNX C/C++ projects with Momentics 4.7
  2. Gnu Make Builder
    • Selectable for C/C++ projects
  3. Internal CDT Builder for C/C++ projects
    • Selectable for C/C++ projects

If a project is being built with the "Internal CDT Builder", then you need to change its build type. Klocwork requires the "QNX Recursive Make Builder" or the "Gnu Make Builder" be specified to automatically produce an accurate build specification. You select the builder for a project with the C/C++ Build/Tool Chain Editor properties page.

Continue to the next section or skip to Gnu Make Builder.