简体   繁体   English

无法运行 Eclipse IDE

[英]Cannot get Eclipse IDE to run

I'm trying to install Eclipse IDE Classic.我正在尝试安装 Eclipse IDE Classic。

I've unzipped the folder and it's on my Desktop.我已经解压缩了文件夹,它在我的桌面上。 I double click on the eclipse.exe file and I had a Java error so within the eclipse.ini file I changed my JDK location as follows:我双击 eclipse.exe 文件,但出现 Java 错误,因此在 eclipse.ini 文件中,我更改了 JDK 位置,如下所示:

-vm
C:\Program Files\Java\jre7\bin\javaw.exe

Now, I get the following error:现在,我收到以下错误:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

My JDK is up to datem I've updated it and even tried a fresh install.我的 JDK 是最新的,我已经更新了它,甚至尝试了全新安装。 I've also tried other Eclipse IDE versions and searched the net for this problem yet I can't find a solution which works.我也尝试过其他 Eclipse IDE 版本并在网上搜索此问题,但我找不到有效的解决方案。

In my eclipse.ini file there is no space between the -vm and the directory of the vm.在我的 eclipse.ini 文件中,-vm 和 vm 目录之间没有空格。 I remember reading something about this before, worth giving it a shot.我记得之前读过一些关于这个的东西,值得一试。

-vmC:\\Program Files\\Java\\jre7\\bin\\javaw.exe

Thnaks Duncan Krebs, your solution worked for me! Thnaks Duncan Krebs,您的解决方案对我有用! I changed from我从

-vm C:\Program Files\Java\jdk1.8.0_101\bin\javaw.exe

to

-vm 
C:\Program Files\Java\jdk1.8.0_101\bin\javaw.exe

and it worked for me!它对我有用!

This is because your eclipse.ini is not correctly configured.这是因为您的 eclipse.ini 没有正确配置。 Most likely it is because you are adding the param in the wrong place in the file here is an example.很可能是因为您在文件中的错误位置添加了参数,这里是一个示例。 I'm not sure if you need a % for the space in program files I would suggest having a filepath to your jdk that does not have any spaces.我不确定您是否需要程序文件中的空间 % 我建议您的 jdk 文件路径没有任何空格。 Make sure the vm is specified before vm arguments otherwise you will get the error you are getting.确保 vm 在 vm 参数之前指定,否则您将收到您正在收到的错误。 Look here for an example to follow Eclipse INI Configuration towards the bottom of the page.在此处查看页面底部的Eclipse INI 配置示例。

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

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