title: SonarQube Eclipse plugin analysis fails because plugin points to wrong .jar file
body: <ul>
  <li>Eclipse: "Luna" Release 2 (4.4.2) [20150219-0600]</li>
  <li>Sonar: 5.1 (under Java 1.7.0_76) </li>
  <li>Sonar Eclipse plugin: 3.5.0.20150804-1512-RELEASE</li>
  </ul>
  
  <p><em>(Major edits because behavior is now more clear)</em></p>
  
  <p>We do Sonar analysis as part of our nightly CI builds on our integration branch, and we want to use the Sonar Eclipse plugin so that we can work on our code and "see" the fixes acknowledged by Eclipse as we make them, as part of our pre-commit activity.</p>
  
  <p><strong>Here's the problem:</strong> In the "SonarQube Issues" view, the issues shown when the cursor is in a given .java file are just the ones from the last nightly CI build.  When I select <strong>{Project} > SonarQube > Analyze</strong>, I get the following error:</p>
  
  <pre><code>Error during execution of Sonar Error status [command:
   C:\eRA_Desktop\Java\1.8.0_31\jre\bin\java.exe
      -cp C:\Users\eryq\AppData\Local\Temp\1\sonar-runner-impl2312805194256028820.jar
       org.sonar.runner.impl.BatchLauncherMain
       C:\Users\eryq\AppData\Local\Temp\1\sonar-project8027650976823258460.properties
  ]: 1
  </code></pre>
  
  <p>If I run this from the command line, I get:</p>
  
  <blockquote>
    <p>Error: Could not find or load main class
    org.sonar.runner.impl.BatchLauncherMain</p>
  </blockquote>
  
  <p>Which gives me the big clue to look in the C:\Users\eryq\AppData\Local\Temp\1\ directory, whereupon I find that <em>neither</em> the .jar file nor the .properties files are there.</p>
  
  <p>There <em>is</em> a .jar file, but instead of the name being "sonar-runner-impl2312805194256028820.jar", it's "sonar-runner-batch2842147209529801286.jar".</p>
  
  <p>We do have a slightly-odd setup with Eclipse links, so I set the <strong>sonar.sources</strong> directory in the project's Preview Analysis Properties to point to the physical path of the top-level source directory, but other than that it's a fairly straightforward setup.</p>
  
  <p>Any idea what could be causing this?  Thanks!</p>
  
  <p>Eryq</p>