title: Eclipse Juno with JRE 7 causes problems on startup
body: <p>The issue that is explained seems to be a common one and different solutions have been proposed already, many of which work. <a href="https://stackoverflow.com/questions/7302604/eclipse-error-failed-to-create-the-java-virtual-machine">One example of this discussion can be found here</a>.</p>
  
  <p>My question is more about <em>why</em> rather than <em>how</em>.</p>
  
  <p>We have been wrestling with this issue here ourselves as well and found that if we launch eclipse using javaw.exe the problem occurs, but if we invoke Eclipse using jvm.dll the problem does not appear. Even though in both cases the <code>eclipse.ini</code> remained same.</p>
  
  <p>To explain my case I will use the example of launching <code>eclipse.exe</code> from command line with a single <code>-vm</code> argument. For reference below is the <code>eclipse.ini</code> that we are using:</p>
  
  <pre><code>-startup
  plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
  --launcher.library
  plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120522-1813
  --launcher.XXMaxPermSize
  256m
  -vmargs
  -Xms128m
  -Xmx1280m
  -XX:MaxPermSize=512m
  -Dderby.stream.error.field=java.lang.System.err
  </code></pre>
  
  <p>You can see that the memory requested for allocation is quite a lot for both heap (1280m) and PermGen (512m). If you are unable to reproduce the issue you can try increasing the memory until the error occurs.</p>
  
  <p>There are three different command lines that you may use:</p>
  
  <pre><code>eclipse.exe -vm ..\jre\bin\javaw.exe
  eclipse.exe -vm ..\jre\bin
  eclipse.exe -vm ..\jre\bin\client\jvm.dll
  </code></pre>
  
  <p>Only the <em>first</em> one causes the error (javaw.exe). The remaining two options launch eclipse successfully. Reducing memory requirement in eclipse.ini also fixes the problem obviously.</p>
  
  <p>So my question is, why does javaw.exe fail when the other two command lines work? What is the difference between choosing these different paths? Does one enforce parameters more strictly than the others?</p>
  
  <p>Environment: Eclipse: 3.8-win32, JRE: 7u7-win32, Windows 7 x64</p>