Java运行时环境或Java开发工具包必须可用才能运行eclipse [英] A Java Runtime Environment or Java development kit must be available in order to run eclipse

查看:2124
本文介绍了Java运行时环境或Java开发工具包必须可用才能运行eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

Eclipse - 没有Java(JRE)/(JDK)…没有虚拟机

我安装了Android SDK,它提到我应该下载eclipse也是如此,但是当我下载并尝试运行eclipse.exe时,我收到一条消息,指出为了运行eclipse ....Java运行时环境或Java开发工具包必须可用。我有JDK,这是安装Android SDK的唯一方法。任何建议?

I installed the Android SDK and it mentioned that I should download eclipse as well, but when I download and try to run the eclipse.exe, I recieve a message stating "A Java Runtime Environment or Java development kit must be available in order to run eclipse....". I do have JDK, which is the only way the Android SDK would have been installed. Any suggestions?

推荐答案

将您的计算机的PATH(环境变量)设置为JDK的bin文件夹。具体如下:
Windows 7 - 开始 - >控制面板 - >系统和安全 - >系统 - >高级系统设置(左侧面板) - >高级 - >环境变量(底部)。在系统变量下找到PATH。选择它并点击编辑。将其指向jdk的bin。如果这不工作,可以尝试向User变量添加一个JAVA_HOME变量(命名新的,而不是输入JAVA_HOME作为名称,值再次是bin文件夹)。希望应该这样做。当我第一次开始时,我觉得你的痛苦与我同样的事情。

Set your computer's PATH (environmental variable) to the bin folder of your JDK. Here's how: Windows 7-Start->Control Panel->System and Security->System->Advanced system settings(panel on the left)->Advanced->Environmental Variables(bottom). Under System Variables find PATH. Select it and hit edit. Point it to the bin of the jdk. If that doesn't work try adding a JAVA_HOME variable to the User variables ( hit new than enter JAVA_HOME for name and the value is the bin folder again). Hopefully that should do it. I feel your pain the same thing happened to me when I first started.

这篇关于Java运行时环境或Java开发工具包必须可用才能运行eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆