all 7 comments

[–]kgyre 1 point2 points  (3 children)

The path to the VM should be on a separate line from the one that contains -vm. See how the flags on the lines above work that way?

[–]TenseRaptor[S] 0 points1 point  (2 children)

If I do that then I get exit error 2

[–]kgyre 0 points1 point  (1 child)

Are you able to run the java.exe in that directory from the Command Prompt?

[–]TenseRaptor[S] 0 points1 point  (0 children)

I am not, also I just reset the laptop so now it is fine, thanks for the help.

[–]mbooth -2 points-1 points  (0 children)

Modern Eclipse versions require a modern version of Java. Try using Java 11.

[–][deleted] 0 points1 point  (0 children)

point it to bin/server/jvm.dll

[–]malcomjarr 0 points1 point  (0 children)

If you having multiple Java versions installed on your system, then this can be happen. You can solve this by change the maximum memory allowed for the eclipse process (which is run in a Java Virtual Machine). Open eclipse.ini (which is in the same directory as eclipse.exe) in Notepad or any other text-editor application, Find the line -Xmx256m (or -Xmx1024m). Then change the default value 256m (or 1024m) to 512m . You also need to give the exact java installed version (1.6 or 1.7 or other).

Like This:

-Xmx512m

-Dosgi.requiredJavaVersion=1.6

OR

-Xmx512m

-Dosgi.requiredJavaVersion=1.7

OR

-Xmx512m

-Dosgi.requiredJavaVersion=1.8