简体   繁体   English

已安装JRE和JDK,但Eclipse无法启动

[英]JRE and JDK intalled but Eclipse doesn't starts

I have installed JDK and JRE. 我已经安装了JDK和JRE。

I just downloaded ADT PLUGIN x64 and x86 in my Win 8 pro x64 . 我刚刚在Win 8 pro x64中下载了ADT PLUGIN x64和x86

But when I start Eclipse, it still says "A JDK or JRE is necessary to run Eclipse....not found in your PATH..." 但是当我启动Eclipse时,它仍然显示“运行Eclipse必须使用JDK或JRE。...在PATH中找不到...”

I added the PATH to bin directory of JDK too but It did not work. 我也将PATH添加到JDK的bin目录中,但是没有用。

possibly can have your jdk and jre duplicates. 可能可以让您的jdk和jre重复。 For safety uninstall completely and install again. 为了安全起见,请完全卸载并重新安装。 As a recommendation works with the JDK and JRE for x86. 建议将其与x86的JDK和JRE一起使用。

When you have them installed correctly added in the Windows environment variables JAVA_HOME the direction of JDK folder. 当您正确安装它们时,在Windows环境变量JAVA_HOME中添加JDK文件夹的方向。

for example 例如

JAVA_HOME = C:\\Program Files(x86)\\Java\\jdk1.6.0_23 JAVA_HOME = C:\\ Program Files(x86)\\ Java \\ jdk1.6.0_23

The problem is that Eclipse does not know where to find your JDK. 问题是Eclipse不知道在哪里可以找到您的JDK。

The easiest solution is to go into your Eclipse installation folder and edit the eclipse.ini file so that the top line contains 最简单的解决方案是进入Eclipse安装文件夹并编辑eclipse.ini文件,以便第一行包含

-vm
C:\Program Files\Java\jdk1.7.0_40\bin\javaw.exe

or wherever your JDK is located within your system. 或您的JDK在系统中的任何位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM