Install your plug-in
|In this topic:|
As a desktop analysis user, once you've downloaded the installation package from the server, you must run the installer. On Windows and Mac, an installation wizard is provided to guide you through the installation process.
Before you begin
- You can override the default settings for the Klocwork Servers during installation. The defaults for the License Server are localhost and 27000. The default port for the Klocwork Server is 8080.
- On Windows: Avoid installing the package in the Program Files directory on Windows. Windows User Access Control (UAC) restricts writing to the Program Files directory.
- Klocwork Servers configuration screen: Specify the Klocwork Server information provided by your Klocwork administrator. Select Use secure server connection (HTTPS) if a secure Klocwork Server connection has been configured.
- Make sure that you have the appropriate administrator access before installing the desktop plugin.
- To control permissions when you are installing Klocwork, change the value of umask.
- To change the permissions on an existing installation, use chmod.
- Install Klocwork software as a non-root user.
- There are separate installation packages for 32-bit and 64-bit Java. Make sure you select the one that matches your operating system.
- There is no separate plug-in for Android Studio on Windows or Linux: use the IntelliJ IDEA zip package to integrate with Android Studio.
On Windows and Mac
For Visual Studio and our command line tools, simply download the package and run the installation wizard. The installation wizard will guide you through the rest of the process. For IntelliJ IDEA, Android Studio, and CLion, see Installing the CLion/IntelliJ IDEA/Android Studio plugins. For Visual Studio Code, see Installing the Visual Studio Code extension
- JVM version: On Mac OS, Klocwork uses the Java Virtual Machine provided by your system. Klocwork requires Java 7 or Java 8.
- Files are installed in the following location:/Library/Frameworks/
- Access command-line tools using the symbolic links in /usr/local/kw/.
You can install the packages using the following command:
kw-<plug-in>-installer.sh [options] <install_directory>
- <plug-in> is the name of the plug-in you want to install. For example, 'cmd'.
- [options] are any command line options you may want to specify. In most cases, just specify '-a' here to indicate that you agree to the terms of the Klocwork license. Use --h to get help on what available command line options exist.
- <install_directory> specifies the directory where the Klocwork plug-in will be installed
Add the bin directory to your PATH
We recommend adding the <command_line_tools_install>/bin directory to your PATH environment variable. Procedures in the documentation assume that you have added the bin directory to your PATH.
Command-line options for the desktop analysis plugin package on Unix
|--agree||-a||agree to license terms and do not display license agreement|
|--force||-f||install without integrity checks|
|--help||-h||display this help and exit|
|--klocwork-server <host>[:<port>]||specify the Klocwork Server host name and port number. Default: localhost:8080.|
|--license-server <host>[:<port>]||specify the License Server host name and port number. Default: localhost:27000|
|--version||-v||display the version of Klocwork software and exit|
|--debug||print the debug information|
Example: Installing the Command Line Tools package on Linux
kw-cmd-installer.linux64.sh -a /home/jlee/klocwork
- -a means that you agree to the terms of the Klocwork license
- /home/jlee/klocwork specifies where Klocwork will be installed