Sonarqube is unable to analyze more than one java file whereas it is working absolutely fine for a single java file

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

1.sonarqube-8.6.0.39681
2.sonar-scanner-4.5.0.2216-windows![Sonarcube|690x331]
3.Sonarqube is unable to analyze more than one java file whereas it is working absolutely fine for a single java file
(upload://6f0egugaXLCPYkGpAq6PES9rOuF.jpeg)
Sonar cube error:
ERROR: Error during SonarScanner execution org.sonar.java.AnalysisException: Your project contains .java files, please provide compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property

Hi @Sam_Sam1,

Welcome to the community.
To analyze a java project it is necessary to provide the java and class files. As a first step the project should be compiled and than the flags sonar.sources and sonar.java.binaries must point to the appropriate folders.

For more details how to configure the scanner, have a look at the documentation.

may I ask how can I compile my project before I build it through jenkins?
One more thing; where is the sonar.sources and sonar.java.binaries propreties located.