ERROR: Error during SonarScanner execution 9.9

Hello,
Can you help me out with this 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.

ERROR: Error during SonarScanner execution …

ERROR: Error during SonarScanner execution
java.lang.IllegalArgumentException: ‘other’ has different root

Hey there.

What language(s) are you trying to analyze? Do you intend to be analyzing Java files?

Hi Colin
Yes we try analyzing Java file

Great. In that case – how is your project usually built? We would highly reccomend using a scanner that integrates with your build system, like the SonarScanner for Maven or SonarScanner for Gradle.