2016年9月7日星期三

Eclipse cannot find javaw.exe


When i start eclipse i get this problem:
enter image description here
The location of javaw.exe in my computer is C:\Program Files\Java\jre7\bin. I have tried change the path environment variable then i get different error like:
enter image description here
shareimprove this question
   
So, where is jvm.dll? – Ingo Oct 18 '13 at 15:38
3 
You are most likely trying to use a 32-bit Eclipse with a 64-bit JRE. – nitind Oct 18 '13 at 17:48
1 
Or the other way round. – texnic Jan 28 '14 at 19:54

5 Answers

Try starting your eclipse.ini (in the same directory with eclipse.exe) with the two lines:
-vm
C:/Program Files/Java/jre7/bin/javaw.exe
shareimprove this answer
Following the comment of @nitind, I've checked the bit depth of my Eclipse and of the installed Java. It turned out that, apparently, during the recent update the Java installer has deleted the old 64 bit installation (so program files/java/jre7/ became empty. After downloading the 64 bit version manually (from http://www.java.com/en/download/manual.jsp), I'm now able to run Eclipse again.
shareimprove this answer
JAVA_HOME should be left as it was before, eg c:\Program Files\Java\jdk1.7.0, and %JAVA_HOME%\bin should be added to the PATH variable, so all required files are available in the environment.
That should be all you need to run Eclipse. If you'd like to specify a diferent vm, take a look athttp://wiki.eclipse.org/Eclipse.ini
shareimprove this answer
If you updated your JRE as did I, eclipse will send the same error report. To correct this issue I went into the eclipse path (i.e) path\eclipse\jee-mars\eclipse and updated the "eclipse configuration-setting" file.
Open the file in some form of editior, I used notepad++. Update the version of JRE on this line..."C:\Program Files\Java\jre1.8.0_91\bin" save the file and start eclipse.
shareimprove this answer
Please map correctly java path in environment varibales like below. it will be resolved. Path=C:\Program Files\Java\jdk1.6.0_16\bin;
For sure it will be resolved
shareimprove this answer

没有评论:

发表评论