tags:

views:

486

answers:

5

I reinstalled the JDK tonight because of the embedded space in Program File... and now Eclipse blows up immediately when starting. Is there a config file that needs updating? I tried eclipse -clean with nu luck.

Peace, Scott

+2  A: 

did you eclipse.ini file in the eclipse directory point to a specific -vm? You may need to change it in you eclipse directory.

partkyle
+4  A: 

What OS are you using? You need to let eclipse know where your jdk lives. On windows at least it is in the exclipse.ini, change it to put to your knew jdk and it will work

for example on windows you will need something like this in your eclipse.ini

-vm
C:\jdk1.6.0_02\jre\bin\java

You can find your eclipse.ini in the root directory of your eclipse installation (ie: where eclipse.exe is)

hhafez
+1  A: 

while eclipse starting it requires java.exe and javaw.exe. so when you installed it at other places. you should specify its location in PATH variable so that it can be used to locate your JVM.

EDIT: and of course remove the old entry.

GK
Thanks everyone. I have tried about everything mentioned and then some. I can issue java and javac from a command prompt just fine. However, eclipse just flashes the splash screen and vanishes. I have tried specifying the -vm flag on the cmd line and only get different errors. Any clues?
stanlick
did you try setting JAVA_HOME in environment variables
GK
+1  A: 

You can also get this error if you have a 64-bit jre and 32-bit eclipse, so just make sure your jre and eclipse build match up!

giarcJavaDummy
+1  A: 

You must have fixed this problem by now but I don't see anything in this thread to indicate that.

I just had the same problem. I updated JDK. The next time I tried to start Eclipse it wouldn't. I fixed the problem by removing all older versions of java and setting the new version in my PATH system environment variable. Actually, I also reinstalled my eclipse but I don't think that had anything to do with the solution. By the way, I'm using Eclipse Galileo (Build id: 20090621-0832) and jdk1.6.0_021.

Andy