[java] javaw.exe cannot find path

Possible Duplicate:
Eclipse will not open due to environment variables

I'm using eclipse IDE and I tried to run a project, but I'm getting error. It says the javaw.exe cannot be run.

I reinstalled Java, now I have JRE 7 and also I installed Jdk, but still no luck.

I opened cmd to run javaw.exe and it says:

C:\Program Files\Java\jre7\bin>javaw.exe The system cannot find the file C:\Program Files\Java\jre7\bin\javaw.exe

I think eclipse is installed correctly, but I have some trouble with Java. I reinstalled Java for 4 times. I don't know what to do. I can't forward with the tutorial that I'm trying to understand.

This question is related to java virtual-machine

The answer is


Just update your eclipse.ini file (you can find it in the root-directory of eclipse) by this:

-vm
path/javaw.exe

for example:

-vm 
C:/Program Files/Java/jdk1.7.0_09/jre/bin/javaw.exe