Java Virtual Machine requirements

In this topic:

Klocwork recommends you use a Java Runtime Environment (JRE) and a Java Development Kit (JDK), such as OpenJDK, that is compatible with the platform you are using.

Ensure you have 64-bit Java installed prior to installing Klocwork.

Starting from release 2024.2, you can specify which Java Virtual Machine (JVM) Klocwork Java tools should use by setting the KW_JAVA environment variable:
set "KW_JAVA=<your preferred JVM install directory>\java.exe"

When this variable is set, the Klocwork Java tools will run using the JVM defined by KW_JAVA instead of the default JVM. This allows for greater flexibility and compatibility with different Java environments.

Windows

The Server tools use Open JDK version 17.0.10. The Build Tools and Command-Line packages bundle Open JDK version 1.8.0_372. Java is installed in <klocwork_install_path>\_jvm\bin\. Your system must meet the requirements for these versions of Java.

Linux

The Server tools use Open JDK version 17.0.10. The Build Tools and Command-Line packages bundle Open JDK version 1.8.0_372. Your system must meet the requirements for these versions of Java.

IDE plug-ins

Klocwork Desktop Java plug-ins for Eclipse and IntelliJ IDEA require a Java 8 or later compatible runtime environment. You must ensure that your IDE is running the appropriate version of Java.

kwant

kwant requires a JDK compatible with Java 8 or later. You must ensure your environment is configured to use the correct JDK.