我正在尝试让Eclipse v3.5 (Galileo)在我的计算机上重新运行-我以前运行过,没有问题,但现在我一直得到这个错误:

要运行Eclipse,必须提供Java运行时环境(JRE)或Java开发工具包(JDK)。在搜索以下位置后没有发现Java虚拟机: C: \ eclipse \ jre \ javaw.exe javaw.exe在当前路径

我刚刚重新安装了JDK和SDK。

我用的是Windows 7 (x64)。

这是怎么回事?我该怎么解决呢?

我不能运行任何ipconfig / tracert /或ping。


当前回答

首先感谢悠悠提出的解决方案!我尝试了YouYou (https://stackoverflow.com/a/14464653/801919)的回答。起初,它对我不起作用。以下是我需要采取的步骤:

Initially, I did not have Java installed on my new machine. So, I had to install that (downloaded from: http://java.com/en/download/manual.jsp). I am running 64-bit OS. But, while downloading, I got the message which could help me in choosing which version of Java to download: Choose the 32-bit download to use with a 32-bit browser. Hence, I downloaded 32-bit version. Then, I followed the procedure mentioned in https://stackoverflow.com/a/14464653/801919, hoping to get the solution. I got some other error: Java was started but returned exit code=13 Then, I installed 64-bit version of Java. Copied javaw.exe from that version.

...Eclipse开始工作了!!Yaay !

其他回答

首先感谢悠悠提出的解决方案!我尝试了YouYou (https://stackoverflow.com/a/14464653/801919)的回答。起初,它对我不起作用。以下是我需要采取的步骤:

Initially, I did not have Java installed on my new machine. So, I had to install that (downloaded from: http://java.com/en/download/manual.jsp). I am running 64-bit OS. But, while downloading, I got the message which could help me in choosing which version of Java to download: Choose the 32-bit download to use with a 32-bit browser. Hence, I downloaded 32-bit version. Then, I followed the procedure mentioned in https://stackoverflow.com/a/14464653/801919, hoping to get the solution. I got some other error: Java was started but returned exit code=13 Then, I installed 64-bit version of Java. Copied javaw.exe from that version.

...Eclipse开始工作了!!Yaay !

当我只复制javaw时,出现了第二个错误,没有java.dll文件,当我也复制它时,eclipse没有启动,我所做的是,我将整个jdk文件夹复制到eclipse文件夹,并将id重命名为jre。问题解决了。

JDK不会在默认路径下安装JVM。

除非您像ant一样需要外部工具来运行,否则非jdk就足以让Eclipse运行。安装这样的JVM最简单的方法是访问http://java.com,让它安装它想安装的任何东西。

然后再次双击Eclipse二进制文件。

从控制面板打开Windows的系统属性,找到环境变量部分:

添加一个JAVA_HOME条目,指向JDK安装的目录(例如C:\Program Files\Java\ jre6) 找到Path条目并将以下内容添加到末尾;%JAVA_HOME%\bin 好的,这些变化 重新启动eclipse,使其知道新环境

大多数Java工具现在都能够通过使用JAVA_HOME环境变量或在Path环境变量中查找Java .exe / javaw.exe来找到您的Java安装。

我也有同样的问题(Windows 7 x64, 64位JDK, 32位Eclipse),我找到了2个解决方案:

安装64位版本的Eclipse(通过点击下载页面上的“Development Builds”选项卡找到)。 安装32位版本的JDK