Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Quick Start: Command line tools

If you prefer to work with an IDE or text editor that we don't support, you can use kwcheck to set up a local project and find defects by using the Klocwork command line tools.

Prerequisites:
  • The Klocwork Server must be installed and running.
  • The Klocwork Command line tools must be installed.
  • You have access to a project that you can use as a sample.

  1. Open a command window and navigate to the directory that contains your project.
  2. Set up a local project: kwcheck create
  3. Set the path to your license: kwcheck set license.host=<License_Server_host> license.port=<license_server_port>
  4. Generate your build specification with kwinject <build_command>, for example: kwinject make
  5. Analyze your code: kwcheck run -b kwinject.out
  6. View detected issues: kwcheck list -F detailed