Java compilers

Coverity Documentation

Version
latest

Coverity Analysis for Java supports the analysis of Java code that is built in two ways:

Important: Java preview features are not guaranteed to be fully backwards compatible.
Important: Coverity does not support Java compilations with a target (via the --release argument) less than 8.
Table 1. Supported Java compilers for static analysis
Host OS Compiler Compiler version Notes
Linux (64-bit)/Linux ARM64/Windows (64-bit) OpenJDK 1.8, 21, 25, 26

Deprecation notice: Support for Oracle JDK 1.8 is deprecated as of 2026.9.0 and support for it will be removed in a future release.

Deprecation notice: Support for Oracle JDK 26 is deprecated as of 2026.9.0 and support for it will be removed in a future release.

macOS/Linux (64-bit)/Windows (64-bit) Oracle JDK

macOS on Intel: To ensure a complete capture, version 12-16 of Xcode (with command line tools) must be installed. Also, ensure that xcodebuild -version runs without error; Coverity uses this command to check the Xcode version.

macOS on Apple silicon: Build capture requires both Rosetta 2 and Xcode (with command line tools) 12 - 16 in order to function. Please ensure xcodebuild -version runs without error.

Deprecation notice: Support for Oracle JDK 1.8 is deprecated as of 2026.9.0 and support for it will be removed in a future release.

Deprecation notice: Support for Oracle JDK 26 is deprecated as of 2026.9.0 and support for it will be removed in a future release.