Problem scenario
You are trying to run SonarScanner, but you get an error about "java.lang.IllegalStateException: Unable to load component class or.sonar.scanner.scan.ProjectLock". What should you do?
Possible solution
Is there a sonar-project.properties file in the directory where you are running the above command? Does your user have access to read the file? Check these things first.