# Managing JRE auto-provisioning

## About the JRE auto-provisioning feature

With JRE auto-provisioning, the Java Runtime Environment (JRE) version required for the scanner engine is automatically downloaded by the scanner from SonarQube. You may have to disable JRE auto-provisioning to manage your internally certified versions. In rare cases, you may have to adjust the default configuration.

If supported by your scanner, JRE auto-provisoning is enabled by default.

JRE auto-provisioning is currently supported by:

* SonarScanner CLI, from version 6.0.
* SonarScanner for .NET, from version 7.0.
* SonarScanner for NPM, from version 4.0.
* SonarScanner for Maven, from version 5.0.
* SonarScanner for Gradle, from version 6.0.

## Disabling JRE auto-provisioning

If you disable JRE auto-provisioning, make sure to provide a JRE that follows the necessary requirements. See [General requirements](/sonarqube-server/2026.2/analyzing-source-code/scanners/scanner-environment/general-requirements.md).

To disable JRE auto-provisioning at the instance level (you need the Administer System permission):

1. Go to **Administration > Configuration > General Settings > General > General**.
2. Enable the **Disable Scanner JRE auto provisioning** option.

Alternatively, you can as well use the `sonar.scanner.skipJreProvisioning` analysis parameter and specify your own version of Java. For more details, see [Analysis parameters](/sonarqube-server/2026.2/analyzing-source-code/analysis-parameters.md#jre-autoprovisioning).

## Adjusting JRE auto-provisioning

If the auto-detection doesn't work properly, you can set analysis parameters on your CI/CD host to:

* Define the operating system and / or CPU architecture type of your CI/CD host.
* Skip the JRE auto-provisioning and / or define the JRE version to be used by the scanner.

For more details, see [Analysis parameters](/sonarqube-server/2026.2/analyzing-source-code/analysis-parameters.md#jre-autoprovisioning).

## Related pages

[SonarQube analysis process](/sonarqube-server/2026.2/discovering/analysis-overview/process-steps.md#scanner-engine-and-analyzers-download)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/2026.2/analyzing-source-code/scanners/scanner-environment/managing-jre-auto-provisioning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
