Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I think these are answers needed when editing the <strong>eclipse.ini</strong> or <strong>STS.ini</strong> files:</p> <p>A lot of people make these mistakes because they make certain assumptions (which is not correct):</p> <ol> <li><p><em><strong>Mistake #1: Writing the parameters in the same line</em></strong>. Unlike JVM command line, Eclipse expects every parameters to be placed in different line in its eclipse.ini file. One of the most common mistake is (which should be written in 2 separated lines):</p> <p><strong>-vm c:/Java/jdk1.6.0_31/bin/javaw.exe</strong></p></li> <li><p><em><strong>Mistake #2: Writing the -vm and -vmargs in the wrong order</em></strong>. Sequence does matter. The <strong>-vmargs</strong> has to be put before the <strong>-vm</strong>. Why? Because once the <strong>-vm</strong> has been specified, the VM will be fully specified and the rest of the -vmargs will be ignored.</p></li> <li><p><em><strong>Mistake #3: Assuming the eclipse.ini will stay the same if you don't change it</em></strong>. Some plugins installation may have auto configuration (which after restarting automagically change the eclipse.ini file, or other .ini config file, e.g. STS.ini if you are using SpringSource Tool Suite for example), they will append indiscriminately the <strong>-vm</strong> before the <strong>-vmargs</strong>. Check for double occurrence of <strong>-vm</strong> or <strong>-vmargs</strong>.</p></li> <li><p><em><strong>Mistake #4: Pointing to the path of JVM, instead of the binary when specifying -vm</em></strong>. Eclipse expects the Java JVM binary, not just the JAVA_HOME path e.g. <strong>-vm c:/Java/jdk1.6.0_31/bin/javaw.exe</strong> not just <strong>-vm c:/Java/jdk1.6.0_31</strong></p></li> </ol> <p>For the original question, it seems the <strong>Mistake #2</strong> is the cause. Instead of the one, you should move the <strong>-vm</strong> to the end, after <strong>-vmargs</strong>:</p> <pre><code>-startup plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519 -product org.eclipse.epp.package.jee.product --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m -vm C:\Programme\Java\jdk1.6.0_20\bin\javaw.exe </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload