安装Java Runtime Environment或Java开发工具包必须按顺序运行Eclipse提供 [英] A Java Runtime Environment or Java development kit must be available in order to run eclipse

查看:442
本文介绍了安装Java Runtime Environment或Java开发工具包必须按顺序运行Eclipse提供的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  日食 - 没有Java(JRE)/(JDK)hellip;没有虚拟机

我安装了Android SDK和它提到,我应该下载Eclipse为好,但是当我下载并尝试运行的eclipse.exe,我收到一条消息,指出A Java运行时环境或Java开发工具包必须是可用为了运行Eclipse ......。我确实有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。如果不行尝试添加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 Runtime Environment或Java开发工具包必须按顺序运行Eclipse提供的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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