gpt4 book ai didi

Eclipse 4.2 Juno 找不到 JRE

转载 作者:行者123 更新时间:2023-12-04 02:56:49 25 4
gpt4 key购买 nike

我下载了 Eclipse Juno 并尝试首次运行它。系统是Win 7 Home Premium,我也下载了JDK。我收到以下错误:

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\Program Files\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH

它需要的javaw.exe 文件在...C:\Program Files\Java\jre7\bin\javaw.exe

如何解决这个问题?提前致谢

最佳答案

" A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: C:\Program Files\eclipse\jre\bin\javaw.exe javaw.exe in your current PATH "

您需要安装Java JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

然后编辑你的路径位置:

右键单击 computer -> properties -> advanced system settings -> advanced -> environment variables :

enter image description here

添加C:\Program Files\Java\<JDK version>\bin到您的 PATH 变量。

同时添加 JAVA_HOME作为系统变量。我有我的 JAVA_HOME设置为 C:\Program Files\Java\jdk1.7.0_03 .

完成后,开始cmd , 输入 java , 然后按回车。如果您收到找不到它的错误,则说明 java 未正确安装。

关于Eclipse 4.2 Juno 找不到 JRE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16511265/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com