SonarQube Runner
  1. SonarQube Runner
  2. SONARUNNER-26

Check if SONAR_RUNNER_HOME is correctly set

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Labels:
      None
    • Number of attachments :
      0

      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"

      See http://markmail.org/message/xkpeqywxjixe3xii

        Activity

        Hide
        Fabrice Bellingard added a comment -

        Your working hours will now be saved Patroklos!

        Show
        Fabrice Bellingard added a comment - Your working hours will now be saved Patroklos!
        Hide
        Freddy Mallet added a comment -

        Manually tested on both Windows and Mac OS.

        Show
        Freddy Mallet added a comment - Manually tested on both Windows and Mac OS.

          People

          • Assignee:
            Fabrice Bellingard
            Reporter:
            Papapetrou Patroklos
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: