FreeBSD, Sonar Scanner, ELF binary type "0" not known

Hi all

We download the latest sonar scanner and try to run it on FreeBSD 11.4
If we run it, we became this error

ELF binary type “0” not known.
exec: /home/name/sonar-scanner/jre/bin/java: Exec format error

Any idea how to solve it?

Hi @cola,

Welcome to the SonarSource Community!!

The error suggests that there seems to be an issue with your java installation. For future reference “SonarQube scanners require version 8 or 11 of the JVM” - Prerequisites and Overview | SonarQube Docs

Are you using 32 bit version or 64 bit of FreeBSD? Make sure it matches for your JVM and your version of SonarQube.

You can also check your dynamic dependencies using the ldd command in your terminal to make sure you don’t have any missing libraries.

For more help on setting up the SonarScanner you can use:

Hope this helps,