Eclipse Crashing on Startup

2019-08-05 08:22发布

Whenever I try to start eclipse, the Loading Screen comes up for about a second, and suddenly disappears. No errors come up. I tried running it from command prompt, and the same thing happened, with no errors. Then, I tried doing ".../eclipse/eclipse.exe -clean" and it didn't do anything.

Thanks for any help.

3条回答
我命由我不由天
2楼-- · 2019-08-05 08:52

Try to delete .snap file in workspace.metadata.plugins\org.eclipse.core.resources folder.

查看更多
甜甜的少女心
3楼-- · 2019-08-05 08:56

This problem is happening because of information written**eclipse.ini** inside your extracted eclipse folder

original data in eclipse.ini is

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

change it size of Xmx512 to 1024 below is information

If you get the error java.lang.OutOfMemoryError: Java heap space while running Java applications, it means that your Java application environment don’t have the sufficient space to store the values needed for your application. This could be because of the following reasons: By mistake, you have set the less memory for your Java environment (or) Your epplication is huge and allocated memory is not enough for your application’s size In the either case, increasing the size of the memory is the solution. You can update the VM arguments as below to fix this issue. You have to select the application and update the required value as -Xms512M -Xmx1024M. This would resolve the problem while that application is running.

also delete .metadata file of your workspace and your problem will get solve

查看更多
放荡不羁爱自由
4楼-- · 2019-08-05 09:11

Maybe it's because of low memory problem on Eclipse launcher. Try to increase the PermGen memory size in eclipse.ini file inside Eclipse folder. You have to extend the memory size in --launcher.XXMaxPermSize to 1024M and -Xms512m -Xmx1024m

查看更多
登录 后发表回答