Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: SONAR-RUNNER-1.3
-
Fix Version/s: SONAR-RUNNER-1.4
-
Component/s: Sonar Runner
-
Labels:None
-
Number of attachments :
Description
In my case I had wrongly set SONAR_RUNNER_HOME to point at d:\sonar-runner-1.3\bin (the correct one was simply d:\sonar-runner-1.3) and I was getting the following error
Exception in thread "main" java.lang.NoClassDefFoundError: org/sonar/runner/Main
Caused by: java.lang.ClassNotFoundException: org.sonar.runner.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.sonar.runner.Main. Program will exit.
A more informative message would have saved me from several hours of "researching" ![]()
Your working hours will now be saved Patroklos!