Java 运行 exe 时 Eclipse 不启动?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19083821/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 13:56:58  来源:igfitidea点击:

Eclipse does not start when I run the exe?

javaeclipse

提问by Calum Richards

When I run the Eclipse.exe within the given folder, it will not start. The Eclipse splash screen will appear for a split second then close. There are no errors.

当我在给定文件夹中运行 Eclipse.exe 时,它​​不会启动。Eclipse 闪屏将出现一瞬间,然后关闭。没有错误。

I've tried practically everything. Updating JDK and JRE: I installed JRE 7 and JDK 1.7.0_40. Both 64 bit, and they are both in the (x86) folder. I've tried re-installing them. And re-downloading Eclipse. Same result every time. I've added the VM to the config, still nothing.

我几乎什么都试过了。更新 JDK 和 JRE:我安装了 JRE 7 和 JDK 1.7.0_40。都是 64 位,它们都在 (x86) 文件夹中。我试过重新安装它们。并重新下载Eclipse。每次结果都一样。我已将 VM 添加到配置中,但仍然没有。

I use Windows 7 and the standard Eclipse for Java IDE.

我使用 Windows 7 和 Java IDE 的标准 Eclipse。

回答by Domecraft

I looked online and found a person who had a similar problem.

我在网上查了一下,发现一个人也有类似的问题。

It says on the forum

论坛上说的

"You might need to download JRE 64 bit version"

“您可能需要下载 JRE 64 位版本”

But again, it depends on what OS you're using as well.

但同样,这也取决于您使用的操作系统。

回答by mentallurg

What system you have - 32-bit or 64-bit? You say it was installed into (x86) folder. But normally (x86) is a default for the 32-bit JDK, not for 64-bit JDK. If you used defaults, then it seems that you installed 32-bit JDK instead of 64-bit.

你有什么系统 - 32 位还是 64 位?您说它已安装到 (x86) 文件夹中。但通常 (x86) 是 32 位 JDK 的默认值,而不是 64 位 JDK。如果您使用默认值,那么您似乎安装了 32 位 JDK 而不是 64 位。

回答by AmmY

Go to your Workspace folder then go to Metadata > plugins. Delete everything from this folder. Then It will work.

转到您的工作区文件夹,然后转到元数据 > 插件。删除此文件夹中的所有内容。然后它会起作用。

回答by Szymon

Try to install Eclipse into a folder without spaces.

尝试将 Eclipse 安装到一个没有空格的文件夹中。

回答by Ehsan Jelodar

go to : "C:\workspace.metadata.plugins\org.eclipse.e4.workbench"

转到:“C:\workspace.metadata.plugins\org.eclipse.e4.workbench”

if already you save backup file "workbench.xmi" replace it else delete this.

如果您已经保存了备份文件“workbench.xmi”,请替换它,否则删除它。

回答by SachiN Ware.

Same problem happened with me . I started eclipse after many days , but it was not starting.just eclipse window flashing , no error nothing. After many trials , i just re-installed my jdk. It worked for me, i think some of my java files were missing or damaged . Try by reinstalling your jdk version it may work as it worked for me.

同样的问题发生在我身上。很多天后我启动了 eclipse,但它没有启动。只是 eclipse 窗口闪烁,没有任何错误。经过多次试验,i just re-installed my jdk。它对我有用,我认为我的一些 java 文件丢失或损坏了。尝试重新安装您的 jdk 版本,它可能对我有用。

回答by satyapol

re install your java. First check your OS version.

重新安装你的java。首先检查您的操作系统版本。

回答by Michael

The same thing was happening for me. All I had to do was uninstalled Java Update 8

同样的事情也发生在我身上。我所要做的就是卸载 Java Update 8

回答by vjs3

Just simply uninstall java 8 update 45, it worked for me. Also you might need to delete the metadata of your workspace as I have first deleted the metadata and then uninstalled java 8 update 45.

只需简单地卸载 java 8 update 45,它对我有用。此外,您可能需要删除工作区的元数据,因为我首先删除了元数据,然后卸载了 java 8 update 45。

回答by Jagadish Sharma U

Kindly check the following:

请检查以下内容:

1) Your eclipse version,whether it is compatible with what version of java. Have that.

1)你的eclipse版本,是否兼容什么版本的java。有那个。

2)Check the operating system specific BIT requirementseither 32/64 with eclipse version.

2) 检查操作系统特定的BIT 要求或 32/64 与 eclipse 版本。

3)Usually java will be installed in ProgramFiles for Java if both OS & Java are 64 bit else it will be in ProgramFiles(x86) if java is 32bit and OS is 64Bit.

3)通常,如果操作系统和 Java 都是 64 位,Java 将安装在 ProgramFiles for Java 中,否则如果 Java 是 32 位,操作系统是 64 位,它将安装在 ProgramFiles(x86) 中。

4)Last but not least check the environment variables for Javawhether it meets the requirements of your eclipse version.

4)最后但并非最不重要的是检查Java环境变量是否满足您的eclipse版本的要求。

Hope this Helps you!

希望这对你有帮助!