# “Could not find ‘java’ executable in JAVA\_HOME or PATH.” when scanning with dotnet tool

**URL:** <https://community.sonarsource.com/t/could-not-find-java-executable-in-java-home-or-path-when-scanning-with-dotnet-tool/43635>\
**Category:** SonarQube Server / Community Build\
**Tags:** dotnet\
**Created:** [May 22, 2021, 4:10am UTC](https://community.sonarsource.com/t/could-not-find-java-executable-in-java-home-or-path-when-scanning-with-dotnet-tool/43635 "2021-05-22T04:10:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Caba\_Sagi](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/caba_sagi/32/17409_2.png) [@Caba\_Sagi](https://community.sonarsource.com/u/Caba_Sagi)\
**Post date:** [May 25, 2021, 3:14pm UTC](https://community.sonarsource.com/t/could-not-find-java-executable-in-java-home-or-path-when-scanning-with-dotnet-tool/43635/3 "2021-05-25T15:14:55Z")

</div>

Hello @iSeiryu

Regarding the community thread that you linked, one of the answers is there that the [Specific JDK needs to be installed separately](https://community.sonarsource.com/t/could-not-find-java-executable-in-java-home-or-path-when-scanning-with-scanner-for-net/42331/4).

And regarding the SonarScanner for .NET documentation you linked, the first bullet in the prerequisites is Java 11 or greater.

All the best,  
Čaba

---

_[View the full topic](https://community.sonarsource.com/t/could-not-find-java-executable-in-java-home-or-path-when-scanning-with-dotnet-tool/43635)._
