# \#java11

**URL:** https://community.sonarsource.com/tag/java11/167.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [Okio buffer not found](https://community.sonarsource.com/t/okio-buffer-not-found/151703)

<div class="topic-metadata">

**Author:** [@paship](https://community.sonarsource.com/u/paship)\
**Replies:** 1\
**Last updated:** [November 3, 2025, 1:57pm UTC](https://community.sonarsource.com/t/okio-buffer-not-found/151703 "2025-11-03T13:57:41Z")

</div>

SonarQube serverv2025.5, Sonarqube deployed on EC2. I am using Java 11. When intregation my project from bitbucket via bitbucket pipelines, it asks me to use plugins { id "org.sonarqube" version "6.3.1.5724" } build…

---

## [Sonar Maven Plugin Fails on Jenkins Slave with Java 8 Compatibility Issue](https://community.sonarsource.com/t/sonar-maven-plugin-fails-on-jenkins-slave-with-java-8-compatibility-issue/126411)

<div class="topic-metadata">

**Author:** [@martinluther](https://community.sonarsource.com/u/martinluther)\
**Replies:** 6\
**Last updated:** [October 3, 2024, 1:27pm UTC](https://community.sonarsource.com/t/sonar-maven-plugin-fails-on-jenkins-slave-with-java-8-compatibility-issue/126411 "2024-10-03T13:27:25Z")

</div>

Hello, I am encountering an issue when running a Jenkins pipeline that involves SonarQube (9.9) analysis. The job is failing on a Jenkins slave machine that runs Java 8. Below is the error message: vbnet Copy code \[E…

---

## [Java 11 based projects not getting analyzed in sonar enterprise edition version 10.5.1](https://community.sonarsource.com/t/java-11-based-projects-not-getting-analyzed-in-sonar-enterprise-edition-version-10-5-1/123817)

<div class="topic-metadata">

**Author:** [@Ajaykumar](https://community.sonarsource.com/u/Ajaykumar)\
**Replies:** 12\
**Last updated:** [September 10, 2024, 7:37am UTC](https://community.sonarsource.com/t/java-11-based-projects-not-getting-analyzed-in-sonar-enterprise-edition-version-10-5-1/123817 "2024-09-10T07:37:47Z")

</div>

which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) sonarqube-10.5, plugin version id(“org.sonarqube”) version “5.0.0.4638” how is SonarQube deployed: zip, Docker, Helm SonarQube …

---

## [Java 11 is deprecated as a runtime env to scan your projects](https://community.sonarsource.com/t/java-11-is-deprecated-as-a-runtime-env-to-scan-your-projects/96597)

<div class="topic-metadata">

**Author:** [@Alexandre\_Gigleux](https://community.sonarsource.com/u/Alexandre_Gigleux)\
**Replies:** 66\
**Last updated:** [June 17, 2024, 9:00am UTC](https://community.sonarsource.com/t/java-11-is-deprecated-as-a-runtime-env-to-scan-your-projects/96597 "2024-06-17T09:00:03Z")

</div>

Dear Community, We wanted to give you a heads-up that we’re moving away from supporting Java 11 as a runtime environment for the Scanners. We’re encouraging everyone to migrate their scan pipelines to Java 17 as soon as…

---

## [After upgrade SonarQube 10.4.1 my azure pipelines are failing on maven task](https://community.sonarsource.com/t/after-upgrade-sonarqube-10-4-1-my-azure-pipelines-are-failing-on-maven-task/117223)

<div class="topic-metadata">

**Author:** [@msravan0717](https://community.sonarsource.com/u/msravan0717)\
**Replies:** 4\
**Last updated:** [June 14, 2024, 10:31am UTC](https://community.sonarsource.com/t/after-upgrade-sonarqube-10-4-1-my-azure-pipelines-are-failing-on-maven-task/117223 "2024-06-14T10:31:07Z")

</div>

Following errors we are getting. \[ERROR\] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar (default-cli) on project timatic-security-aggregator: Execution default-cli of goal org.s…

---

## [Can't scan my project using Java11](https://community.sonarsource.com/t/cant-scan-my-project-using-java11/108201)

<div class="topic-metadata">

**Author:** [@elias-aneuvo](https://community.sonarsource.com/u/elias-aneuvo)\
**Replies:** 19\
**Last updated:** [April 8, 2024, 6:25pm UTC](https://community.sonarsource.com/t/cant-scan-my-project-using-java11/108201 "2024-04-08T18:25:45Z")

</div>

Our project currently uses ./gradlew build sonarqube to build and run Sonar’s analysis, but it’s complaining that our Java 11 image will be deprecated soon and that the temporary fix will end January 28th. Is there any c…

---

## [Question about Code Coverage related to Java11 to Java17 migration](https://community.sonarsource.com/t/question-about-code-coverage-related-to-java11-to-java17-migration/111937)

<div class="topic-metadata">

**Author:** [@narayananpalanimarco](https://community.sonarsource.com/u/narayananpalanimarco)\
**Replies:** 1\
**Last updated:** [March 25, 2024, 8:03am UTC](https://community.sonarsource.com/t/question-about-code-coverage-related-to-java11-to-java17-migration/111937 "2024-03-25T08:03:41Z")

</div>

If a project scanned using Java 11, why the Code Coverage updated as ‘0’ rather ‘Not Scanned’?. It gives a false impression(after paying to the tool license) and seeing overall code health by looking at zero. Eventually …

---

## [Can't use Java17 using Scanner for NPM](https://community.sonarsource.com/t/cant-use-java17-using-scanner-for-npm/107573)

<div class="topic-metadata">

**Author:** [@czelabueno](https://community.sonarsource.com/u/czelabueno)\
**Replies:** 7\
**Last updated:** [February 6, 2024, 4:56pm UTC](https://community.sonarsource.com/t/cant-use-java17-using-scanner-for-npm/107573 "2024-02-06T16:56:31Z")

</div>

I’m using Sonar cloud for a NPM project. My project not require use java and however I’m offline because I require use JDK 17 My app code just import sonarscanner like this const scanner = require('sonarqube-scanner');…

---

## [Fail to scan on Azure pipeline: Java11 is deprecated](https://community.sonarsource.com/t/fail-to-scan-on-azure-pipeline-java11-is-deprecated/107750)

<div class="topic-metadata">

**Author:** [@neha\_malhotra](https://community.sonarsource.com/u/neha_malhotra)\
**Replies:** 2\
**Last updated:** [January 23, 2024, 5:51am UTC](https://community.sonarsource.com/t/fail-to-scan-on-azure-pipeline-java11-is-deprecated/107750 "2024-01-23T05:51:04Z")

</div>

hi @Alexandre\_Gigleux @ganncamp @daniel - While running maven build through azure pipeline started getting the error \[ERROR\] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (defa…

---

## [Java 11 deprecated vs SonarScanner for Gradle](https://community.sonarsource.com/t/java-11-deprecated-vs-sonarscanner-for-gradle/96826)

<div class="topic-metadata">

**Author:** [@Jun\_Wu](https://community.sonarsource.com/u/Jun_Wu)\
**Replies:** 6\
**Last updated:** [August 24, 2023, 9:04am UTC](https://community.sonarsource.com/t/java-11-deprecated-vs-sonarscanner-for-gradle/96826 "2023-08-24T09:04:47Z")

</div>

If we only use the gradle plugin to run the command ./gradlew sonarqube for passing the result file to SonarCloud, would it been impacted?

---

## [The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop acce](https://community.sonarsource.com/t/the-version-of-java-11-0-17-you-have-used-to-run-this-analysis-is-deprecated-and-we-will-stop-acce/97046)

<div class="topic-metadata">

**Author:** [@math1](https://community.sonarsource.com/u/math1)\
**Replies:** 1\
**Last updated:** [August 7, 2023, 1:38pm UTC](https://community.sonarsource.com/t/the-version-of-java-11-0-17-you-have-used-to-run-this-analysis-is-deprecated-and-we-will-stop-acce/97046 "2023-08-07T13:38:33Z")

</div>

Many of our PRs now show the below message, particularly the we will stop accepting it soon message - The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Pl…

---

## [Is SonarCloudAnalyze@1.41.0 Azure DevOps task really released?](https://community.sonarsource.com/t/is-sonarcloudanalyze-1-41-0-azure-devops-task-really-released/96839)

<div class="topic-metadata">

**Author:** [@i4rilu](https://community.sonarsource.com/u/i4rilu)\
**Replies:** 1\
**Last updated:** [August 4, 2023, 6:41am UTC](https://community.sonarsource.com/t/is-sonarcloudanalyze-1-41-0-azure-devops-task-really-released/96839 "2023-08-04T06:41:40Z")

</div>

It doesn’t look like extensions/sonarcloud/tasks/analyze/v1/task.json was updated and it’s not possible to reference SonarCloudAnalyze@1.41.0 in Azure DevOps pipelines. It would really be great to have this version avai…

---

## [Github Actions for Java 8 Maven/Gradle Projects](https://community.sonarsource.com/t/github-actions-for-java-8-maven-gradle-projects/84985)

<div class="topic-metadata">

**Author:** [@zorro](https://community.sonarsource.com/u/zorro)\
**Replies:** 8\
**Last updated:** [March 9, 2023, 9:05pm UTC](https://community.sonarsource.com/t/github-actions-for-java-8-maven-gradle-projects/84985 "2023-03-09T21:05:06Z")

</div>

SonarQube 9.9 LTS Version We have Maven/Gradle projects which use Java 8 to built-in using GitHub actions. Now we updated the SonarQube version to 9.9. How we can set up the GitHub Action yaml file to build Java 8 proje…

---

## [Sonarqube installation startup issue](https://community.sonarsource.com/t/sonarqube-installation-startup-issue/22453)

<div class="topic-metadata">

**Author:** [@Naren](https://community.sonarsource.com/u/Naren)\
**Replies:** 5\
**Last updated:** [January 23, 2023, 6:43pm UTC](https://community.sonarsource.com/t/sonarqube-installation-startup-issue/22453 "2023-01-23T18:43:40Z")

</div>

I am using Sonarqube 7.9.3 LTS version. I had installed JDK 11 and i have updated the same in wrapper.conf file.Please find below: wrapper.java.command=\<–path–\>/jdk-11.0.6/bin/java.exe When i try to execute StartSonar.b…

---

## [Deprecated dependency when running gradle sonarqube](https://community.sonarsource.com/t/deprecated-dependency-when-running-gradle-sonarqube/78573)

<div class="topic-metadata">

**Author:** [@swiss-api-builder](https://community.sonarsource.com/u/swiss-api-builder)\
**Replies:** 1\
**Last updated:** [December 22, 2022, 2:19pm UTC](https://community.sonarsource.com/t/deprecated-dependency-when-running-gradle-sonarqube/78573 "2022-12-22T14:19:28Z")

</div>

Hello guys, I have a quick question on how Sonarqube works, im not really sure here is the correct place to ask. Please help move this to the correct section if i made a mistake. Thanks Currently I am using Sonarqube v…

---

## [Unable to scan Java 8 Project with sonarqube](https://community.sonarsource.com/t/unable-to-scan-java-8-project-with-sonarqube/68354)

<div class="topic-metadata">

**Author:** [@vijayaraj](https://community.sonarsource.com/u/vijayaraj)\
**Replies:** 3\
**Last updated:** [July 29, 2022, 6:15pm UTC](https://community.sonarsource.com/t/unable-to-scan-java-8-project-with-sonarqube/68354 "2022-07-29T18:15:41Z")

</div>

I’m using sonarqube9.1 Trying to scan java 8 project with sonarqube. After analysing the previous blogs, i found that there are two steps Build the Java 8 with jdk 8 Do sonar analysis with jdk 11 I did the same But…

---

## [How would u create a custom rule for java 11 syntax?](https://community.sonarsource.com/t/how-would-u-create-a-custom-rule-for-java-11-syntax/57713)

<div class="topic-metadata">

**Author:** [@Tristan107](https://community.sonarsource.com/u/Tristan107)\
**Replies:** 1\
**Last updated:** [March 23, 2022, 2:26pm UTC](https://community.sonarsource.com/t/how-would-u-create-a-custom-rule-for-java-11-syntax/57713 "2022-03-23T14:26:48Z")

</div>

I’m currently writing custom rules for Sonarqube 8.9 LTS. The demo pom.xml clearly says u have to stay compatible with java 8 (since scanner may be used from a java 8 build agent) which I understand. But now what if u …

---

## [Sonarqube failing with "ECJ Unable to resolve type junit.framework.TestCase" error running on sonarcloud](https://community.sonarsource.com/t/sonarqube-failing-with-ecj-unable-to-resolve-type-junit-framework-testcase-error-running-on-sonarcloud/53976)

<div class="topic-metadata">

**Author:** [@jshattu](https://community.sonarsource.com/u/jshattu)\
**Replies:** 20\
**Last updated:** [December 7, 2021, 2:40pm UTC](https://community.sonarsource.com/t/sonarqube-failing-with-ecj-unable-to-resolve-type-junit-framework-testcase-error-running-on-sonarcloud/53976 "2021-12-07T14:40:59Z")

</div>

Running on Github using Github Actions on Sonarcloud, Project is multi-module Gradle build with a codebase which is evenly split between Java andKotlin running on a Java 11 platform. command ran ./gradlew assemble sona…

---

## [SonarQube analysis for Android project with Java 11](https://community.sonarsource.com/t/sonarqube-analysis-for-android-project-with-java-11/54208)

<div class="topic-metadata">

**Author:** [@jayesh\_patel](https://community.sonarsource.com/u/jayesh_patel)\
**Replies:** 1\
**Last updated:** [December 6, 2021, 11:10am UTC](https://community.sonarsource.com/t/sonarqube-analysis-for-android-project-with-java-11/54208 "2021-12-06T11:10:10Z")

</div>

We use SoanrQube 8.9 LTS for our Android(Java+Kotlin) projects. We have recently upgraded projects’ codebase to compile them with JDK 11. The gradle project structure is like this: RootProject | |----\> :app (compile…

---

## [Jacoco xml report generated and imported but not displayed in SonarCloud](https://community.sonarsource.com/t/jacoco-xml-report-generated-and-imported-but-not-displayed-in-sonarcloud/52381)

<div class="topic-metadata">

**Author:** [@Dario\_Benvenuti](https://community.sonarsource.com/u/Dario_Benvenuti)\
**Replies:** 1\
**Last updated:** [November 1, 2021, 8:40am UTC](https://community.sonarsource.com/t/jacoco-xml-report-generated-and-imported-but-not-displayed-in-sonarcloud/52381 "2021-11-01T08:40:12Z")

</div>

Hi All, We have around 26 projects, mostly Java based, analysed by SonarCloud; all are using the same configuration. Configuration spring boot 2.2.1.RELEASE java 11 \<java.version\>11\</java.version\> \<sonar.cover…

---

## [Sonar requires us to restart the server 2x a day to have successful scans](https://community.sonarsource.com/t/sonar-requires-us-to-restart-the-server-2x-a-day-to-have-successful-scans/42427)

<div class="topic-metadata">

**Author:** [@Berin\_Loritsch](https://community.sonarsource.com/u/Berin_Loritsch)\
**Replies:** 8\
**Last updated:** [April 30, 2021, 3:14pm UTC](https://community.sonarsource.com/t/sonar-requires-us-to-restart-the-server-2x-a-day-to-have-successful-scans/42427 "2021-04-30T15:14:46Z")

</div>

We are running SonarQube Community Edition Version 7.9.6 (build 41879), and Gradle SonarQube plugin 3.0 to build and scan our java projects. Our Sonarqube server is shut down nightly to save money in cloud hosting, but …

---

## [Java Rule S1943 should take into account if a FileWriter or FileReader is created with a charset](https://community.sonarsource.com/t/java-rule-s1943-should-take-into-account-if-a-filewriter-or-filereader-is-created-with-a-charset/7722)

<div class="topic-metadata">

**Author:** [@tschindler](https://community.sonarsource.com/u/tschindler)\
**Replies:** 6\
**Last updated:** [March 26, 2021, 2:11pm UTC](https://community.sonarsource.com/t/java-rule-s1943-should-take-into-account-if-a-filewriter-or-filereader-is-created-with-a-charset/7722 "2021-03-26T14:11:37Z")

</div>

I’m using a FileWriter in order to write some analysis information of my application in a text file. The rule S1943 raises an issue even if the FileWriter is created with a CharSet - value like this: BufferedWriter bw =…

---

## [Error while setting up SonarCloud for a multimodule Maven project](https://community.sonarsource.com/t/error-while-setting-up-sonarcloud-for-a-multimodule-maven-project/39880)

<div class="topic-metadata">

**Author:** [@wassim](https://community.sonarsource.com/u/wassim)\
**Replies:** 4\
**Last updated:** [March 12, 2021, 9:36pm UTC](https://community.sonarsource.com/t/error-while-setting-up-sonarcloud-for-a-multimodule-maven-project/39880 "2021-03-12T21:36:21Z")

</div>

Project is hosted on: https://github.com/opencellsoft/core Sonar project https://sonarcloud.io/project/configuration?id=opencellsoft\_core Both github actions and local maven where tested the used command locally : mv…

---

## [Android Gradle - Sonarqube fails with JAXBException on JDK 11](https://community.sonarsource.com/t/android-gradle-sonarqube-fails-with-jaxbexception-on-jdk-11/37851)

<div class="topic-metadata">

**Author:** [@satheeshpayoda](https://community.sonarsource.com/u/satheeshpayoda)\
**Replies:** 7\
**Last updated:** [February 2, 2021, 2:55pm UTC](https://community.sonarsource.com/t/android-gradle-sonarqube-fails-with-jaxbexception-on-jdk-11/37851 "2021-02-02T14:55:38Z")

</div>

Today my Sonar Scanner started to fail on Android Project and later found that Sonar Stopped supporting JDK 8. So i upgraded the JDK version to 11 and soon after that Sonarqube again started to fail with following error. …

---

## [I can't connect SonarQube with PostgreSQL](https://community.sonarsource.com/t/i-cant-connect-sonarqube-with-postgresql/33477)

<div class="topic-metadata">

**Author:** [@Jose\_Fernandez](https://community.sonarsource.com/u/Jose_Fernandez)\
**Replies:** 12\
**Last updated:** [November 3, 2020, 2:13pm UTC](https://community.sonarsource.com/t/i-cant-connect-sonarqube-with-postgresql/33477 "2020-11-03T14:13:39Z")

</div>

Hello, I have installed SonarQube on my Windows 10 laptop and using the embedded database it works perfectly but when i try connecting it with PostgresSQL I am not able to make it work. I am going to list the versions …

---

## [SonarCloud moving analysis to java11](https://community.sonarsource.com/t/sonarcloud-moving-analysis-to-java11/32143)

<div class="topic-metadata">

**Author:** [@AnkitKaneri](https://community.sonarsource.com/u/AnkitKaneri)\
**Replies:** 1\
**Last updated:** [October 12, 2020, 3:54pm UTC](https://community.sonarsource.com/t/sonarcloud-moving-analysis-to-java11/32143 "2020-10-12T15:54:25Z")

</div>

Moving to java11 is not as simple as it is stated here. A lot of are things breaking once we upgraded to java11. Gradle needs to be upgraded to 5.0 to support java11. We are using lombok as an annotation processor for a…

---

## [\[Error\] SonarLint Vscode java 11](https://community.sonarsource.com/t/error-sonarlint-vscode-java-11/29171)

<div class="topic-metadata">

**Author:** [@Edward1711](https://community.sonarsource.com/u/Edward1711)\
**Replies:** 1\
**Last updated:** [August 14, 2020, 8:38am UTC](https://community.sonarsource.com/t/error-sonarlint-vscode-java-11/29171 "2020-08-14T08:38:29Z")

</div>

Hello there, I have a problem using SonarLint in visual studio code, I’ve been using very well this plugin in java 8 but arround last week, Vscode required java 11 as minimum java version and when I updated this (I keep…
