Installing the Klocwork Server package on Windows
Installing the Klocwork Server package on WindowsThis page provides instructions for installing the Klocwork Server package using the installation wizard. For instructions on unattended installation of both the Klocwork Server and desktop analysis plugins, see Unattended installation on Windows. Your users can install the desktop analysis plug-ins from the product portal ("pull" installation) or, if your organization is set up for it, you can install the clients for your users in an unattended ("push") installation through a Software Management System (SMS) or similar system. Before you beginUpgrading? See Upgrading from a previous version. Where do I get the software? Download the packages from Klocwork Support. Typically, only one or two users in an organization have access to Klocwork Developer Network. If you don't have access, you can register for a new account. You need a license. See Getting a license if you don't already have one.
Running two versions of the Klocwork ServersIf you will be running two sets of the Klocwork Servers, for example to test the Klocwork 2018.1 Servers while users continue to access your existing servers, you must run them on different projects_root directories (and set the ports appropriately). Required permissions
Installation using the Windows installation wizardRun the Klocwork Server installation wizard, following the prompts. Note the following:
Installing the License Server on a separate host If you want to install the License Server on a separate host from the Klocwork servers, you need to install it from the command line using the following command:
kw-server-installer.18.1.x.x.windows.exe /w /S /v"/qn /norestart INSTALLDIR=<local_directory> ADDLOCAL=LicenseServer,JRE"
where:
Note on the Path environment variableOn Windows, the Klocwork bin directory is automatically added to your Path environment variable as follows:
Log files for Windows installationAn installation log file is saved to the Temp directory of Local Settings whenever one of the Klocwork installation packages is started on Windows. For example, on Windows 7, the installation log file is saved to %LOCALAPPDATA%\Temp. These log files are named Klocwork<release>-<package>.log . For example, the installation log file for the Klocwork 2018.1 Server package is named Klocwork2018.1-Server.log. A logs directory is also created in the root Klocwork installation directory during installation. For the Server installer, for example, the log files in this directory store kwservice output when the servers are first started and the projects_root directory is initialized. Start the serversTo start the servers, use Windows Services Administration or kwservice start: kwservice --projects-root <projects_root> start
Example kwservice --projects-root C:\klocwork\projects_root start Log in to Klocwork Static Code AnalysisAfter starting the Klocwork servers, Klocwork Static Code Analysis is accessible from a browser using the URL of the Klocwork server hostname and the Klocwork server port chosen during the install (for example, server21:8080). By default, the person who installed Klocwork is set as the Klocwork administrator, and is given the Projects root admin role. Initially, the Basic Authentication access control method is used, so no password is needed to log in. For example, if the user account used during the installation was ‘jsmith’, to log in to Static Code Analysis with the administrator role, use the credentials:
username: jsmith password: <empty>For more details on security and authentication methods, see Security and permissions. |