简体   繁体   English

安装Eclipse时出错

[英]Error installing Eclipse

I have the following Java version installed: " Version 7 Update 9" in Windows 7 64-bit , in the " Program files (x86) " folder. 我安装了以下Java版本: Windows 7 64位中的“ 版本7更新9”,位于“ 程序文件(x86) ”文件夹中。 I think this came by default when I installed Windows. 我认为这是在安装Windows时默认出现的。

I am now trying to install Eclipse for Win 64 Bit using this link: http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.2.1-201209141800/eclipse-SDK-4.2.1-win32-x86_64.zip 我现在正在尝试使用此链接安装Eclipse for Win 64位: http : //www.eclipse.org/downloads/download.php? file=/eclipse/downloads/drops4/R-4.2.1-201209141800/ eclipse- SDK-4.2.1-win32-x86_64.zip

But I get an error when I launch Exclipse.exe: 但是启动Exclipse.exe时出现错误: 在此处输入图片说明

Is this related to the fact Java is installed in the "Program Files x86" folder on a Win 64 bit? 这是否与Java安装在Win 64位上的“ Program Files x86”文件夹中有关? How can I solve this so I can install Eclipse? 我该如何解决这个问题才能安装Eclipse? By the way, Java should work fine, I've opened some applet demo samples in the IE browser, all good. 顺便说一下,Java应该可以正常工作,我已经在IE浏览器中打开了一些applet演示示例,一切都很好。

Last time I installed Eclipse on another PC went fine, I'm guessing the system configuration has to do with this error in this case. 上次我在另一台PC上安装Eclipse的时候一切正常,我猜测在这种情况下,系统配置与该错误有关。 Any help much appreciated. 任何帮助,不胜感激。

4 possible fix: 4种可能的解决方法:

  1. set java home path 设置java主目录
  2. install 32 bit jdk version 6. 安装32位jdk版本6。
  3. start eclipse using something similar eclipse -vm c:\\jdk1.4.2\\jre\\bin\\javaw 使用类似eclipse的东西开始eclipse -vm c:\\ jdk1.4.2 \\ jre \\ bin \\ javaw
  4. start eclipse using eclipse -clean and set java settings accordingly. 使用eclipse -clean启动eclipse并相应地设置java设置。 for more information look @ here http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Frunning_eclipse.htm 有关更多信息,请参见 @此处http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Frunning_eclipse.htm

Perhaps the java folder existed on disk but not in registry. 也许java文件夹存在于磁盘上,但不在注册表中。 It maybe a leftover of previous installation. 它可能是先前安装的剩余部分。 Try installing 32 bit eclipse or installing 64 bit java. 尝试安装32位Eclipse或安装64位Java。

Simpler fix 更简单的修复

Copy the java folder to the eclipse installation and rename it to jre 将java文件夹复制到eclipse安装并将其重命名为jre

You need to put the JRE/JDK on the WINDOWS path. 您需要将JRE / JDK放在WINDOWS路径上。 This can be done by opening up the environment variables option in Windows. 这可以通过在Windows中打开环境变量选项来完成。 The error you receive is because java isn't on that path so eclipse defaults to its location. 您收到的错误是因为java不在该路径上,所以eclipse默认为其位置。

Thank you all for the advice. 谢谢大家的建议。

It finally worked after I did the following: 在执行以下操作之后,它终于起作用了:

  • I installed the JDK 7 for Win 64 我为Win 64安装了JDK 7
  • I set the variable Path like this: System Properties -> Advanced -> Environment variables -> Path -> Edit: C:\\Program Files\\Java\\jdk1.7.0_10\\bin 我将变量路径设置如下:系统属性->高级->环境变量->路径->编辑:C:\\ Program Files \\ Java \\ jdk1.7.0_10 \\ bin
  • I copied the Eclipse structure (after unzipping) to Program files 我将Eclipse结构(解压缩后)复制到了Program文件中
  • I launched Eclipse.exe, configured workspace, etc. 我启动了Eclipse.exe,配置了工作区等。

Now I can start using Eclipse to create packages, classes, applets etc. 现在,我可以开始使用Eclipse创建包,类,小程序等。

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

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