I recently uninstalled and then reinstalled Java on my machine and ever since, Eclipse just does not start up. I find this weird, because I uninstalled a different version of Java from the one that I use. I modified the eclipse.ini file, by adding the following:

-vm

C:\Program Files (x86)\Java\jre1.5.0_15\bin\javaw.exe

This made no difference. I then tried to reset the JAVA_HOME variable and I tried both these things again, after reinstalling (well, unzipping) Eclipse again. None of this made any difference, which is why I'm posting this question. Can someone help me out here?

What version of eclipse are you using? Also, are you able to browse to 'C:\Program Files (x86)\Java\jre1.5.0_15\bin\' on the command line?
–
Sagar VSep 23 '10 at 2:43

Can you still run other java-based things? Try running an applet or an executable jar file. At least this will tell us if the problem is specific to Eclipse, or if it's with your overall Java install. (It's probably the latter, but it never hurts to check, right?)
–
Dan MSep 23 '10 at 2:46

@Sagar Yes, I am able to navigate to the file from the command line.
–
efficiencyIsBlissSep 23 '10 at 2:57

@Dam My Java install is fine. Infact, the reason I uninstalled Java in the first place was because the installation was corrupted. I could not run executable jar files, but Eclipse and Java programs ran fine. Now, that I have reinstalled Java, the jar files run, but everything else stopped.
–
efficiencyIsBlissSep 23 '10 at 2:58

Make sure that the -vm entry is in the top section of the eclipse.ini
–
user2010276Jan 25 '13 at 8:41

I uninstalled all the versions of Java I had installed and installed them again. I also deleted Eclipse and downloaded that again. Following this, I edited the eclipse.ini file to include the path the javaw.exe, as I mentioned in the question. Everything works fine now.