Eclipse- JDK not found(Eclipse-找不到JDK)
问题描述
我已经下载了 JDK 7 和 Eclipse Helios,但是当我打开 Eclipse 时,我得到了以下错误
I have downloaded JDK 7 and Eclipse Helios, but when I open Eclipse, I get the following error
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:eclipsejrejavaw.exe javaw.exe in your current PATH
我尝试将 JDK bin 文件夹的确切路径放在 eclipse.ini 文件中,但没有成功
I have tried to put the exact path of JDK bin folder in eclipse.ini file but it didn't work
-vm
C:Program FilesJavajdk1.7.0_05in
谁能告诉我这个问题背后的原因是什么,我该如何解决.
Can somebody tell me what is the reason behind this issue and how can I solve it.
推荐答案
当我遇到这个问题时,我解决了以下方法(我有Windows 7):
When I had this problem, I solved the following way (I have Windows 7):
- 右键单击桌面上的 Eclipse 图标.
- 属性
目标:C:eclipseeclipse.exe -vm C:Javajdk1.6.0_32jreinjavaw.exe
- Right click on the Eclipse icon in your desktop.
- Properties
Target: C:eclipseeclipse.exe -vm C:Javajdk1.6.0_32jreinjavaw.exe
3a(如果您的 jdk 安装在程序文件"之类的路径中):C:eclipseeclipse.exe -vm "C:Javajdk1.6.0_32jreinjavaw.exe"
3a (if your jdk is installed in a path like "Program Files"): C:eclipseeclipse.exe -vm "C:Javajdk1.6.0_32jreinjavaw.exe"
这篇关于Eclipse-找不到JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse-找不到JDK
基础教程推荐
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01
- 降序排序:Java Map 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01