Does you project compiles when you build it without SonarScanner and wrapper ?
This seems to me like a compilation problem, not a SonarQube problem.
I forgot to mention this implicit prerequisite that your code should compile before being able to analyze it !