eclipse闪退怎么办呢?本节内容中小编就为大家带来eclipse闪退问题解决办法,下面就一起来了解一下吧!
案例一:
用了许久的eclipse今日强遭闪退,看其打开的操作日志为一个空指针的报错如下:
!ENTRY org.eclipse.mylyn.tasks.ui 4 0 2014-05-06 10:13:56.828
!MESSAGE Task list initialization failed
!STACK 0
java.lang.NullPointerException
at org.eclipse.mylyn.internal.context.tasks.ui.TaskContextStore.setDirectory(TaskContextStore.java:232)
at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.initializeDataSources(TasksUiPlugin.java:878)
at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin.start(TasksUiPlugin.java:625)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:469)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:174)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:273)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:52)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:269)
at org.eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(EarlyStartupRunnable.java:117)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2412)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
案例二
本人一直用两条256的内存条,昨天公司给了我一个512的内存条,希望能提高一下开发速度,很欣然的换下以前的一条内存,美滋滋的说,我的内存终于变成768的了
可是换好内存后,重启电脑,开开Eclipse,部署weblogic,这时Eclipse突然自动关闭,弹出如下错误提示:
JVM terminated. Exit code=1
/usr/java/jdk1.5.0_07/bin/java
-Xms80m
-Xmx512m
-jar /root/installed/eclipse/startup.jar
-os linux
-ws gtk
-arch x86
-launcher /root/installed/eclipse/eclipse
-name Eclipse
-showsplash 600
-exitdata 138008
-vm /usr/java/jdk1.5.0_07/bin/java
-vmargs
-Xms80m
-Xmx512m
-jar /root/installed/eclipse/startup.jar
刚开始还以为是意外,就重启Eclipse,结果每次启动到一半,就弹出以上错误,停止启动,让我很是郁霉,就google了半天,发现众说纷纭,大多是说JDK1.4,JDK1.5与Eclipse 3.0冲突的bug,可是我突然发现我的Firefox也经常无缘无故的中途关闭,我就感觉可能不是JDK冲突的问题,因为我以前一直没有这个问题,难道是因为换了内存的缘故?
案例一问题解决办法:
删除解决,网上很多介绍支招建议将.metadata全部删除,其实只要简单查看分析一下操作日志将问题交集的文件删除即可,这样原有的项目在打开后仍能显示。
此外,分析闪退首要的还是检查环境变量path和classpath是否配置正确。
案例二问题解决办法:
把以前的内存换回去,重启就可以了。
eclipse闪退问题解决办法小编就为大家介绍到这里了,希望对大家有所帮助!