Search code examples
projectsonarquberunner

Sonar runner can not find or load main class


I have installed sonar and it works on http://localhost:9000

When I want to analyze a project using sonar runner (command from my project directory), I get the following error:

D:\eclipse_workspace\Project>sonar-runner.bat
C:\Program Files (x86)\sonar-runner-1.3\bin
Error: Could not find or load main class org.sonar.runner.Main

I'm working on Windows 7 and the property file is unchanged (derby database). How can I run sonar runner?


Solution

  • You can try installing the Sonar Runner in a folder that does not contain spaces, this should solve the problem.