# Detect problems encountered by java projects

**URL:** <https://community.sonarsource.com/t/detect-problems-encountered-by-java-projects/98117>\
**Category:** SonarQube Server / Community Build\
**Tags:** java\
**Created:** [August 26, 2023, 7:51am UTC](https://community.sonarsource.com/t/detect-problems-encountered-by-java-projects/98117 "2023-08-26T07:51:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangsetsail](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/zhangsetsail/32/48617_2.png) [@zhangsetsail](https://community.sonarsource.com/u/zhangsetsail)\
**Post date:** [August 26, 2023, 7:51am UTC](https://community.sonarsource.com/t/detect-problems-encountered-by-java-projects/98117/1 "2023-08-26T07:51:02Z")

</div>

Hello everyone.  
I installed sonarQube with Helm.  
I encountered some problems in the inspection of the java language. I would like to ask you for advice. The error is shown in the figure. He said very clearly that I need a class file.

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/0/5/05627b1e7fd9f8adcd8e72702a163b2bd3114a34.jpeg)  
I want to add source code checking to my cloud platform. I want the check for all languages ​​to work with

```auto
docker run sonarsource/sonar-scanner-cli .

```

why does the java check still need a class file

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/e/d/ed21498316f32c48ca01e9676e20f7aa6bf23ba4.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [August 28, 2023, 8:31am UTC](https://community.sonarsource.com/t/detect-problems-encountered-by-java-projects/98117/2 "2023-08-28T08:31:35Z")

</div>

Hey there.

The analysis of Java requires the actual bytecode of the compiled application to perform an accurate analysis. That’s why we suggest using the [SonarScanner for Maven](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarscanner-for-maven/) or [SonarScanner for Gradle](https://docs.sonarsource.com/sonarqube/latest/analyzing-source-code/scanners/sonarscanner-for-gradle/), scanner integrations with the build tools you’re probably already using to build your code.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [September 4, 2023, 8:32am UTC](https://community.sonarsource.com/t/detect-problems-encountered-by-java-projects/98117/3 "2023-09-04T08:32:08Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
