eclipse閃退怎么辦呢?本節(jié)內(nèi)容中小編就為大家?guī)韊clipse閃退問題解決辦法,下面就一起來了解一下吧!
案例一:
用了許久的eclipse今日強(qiáng)遭閃退,看其打開的操作日志為一個空指針的報(bào)錯如下:
!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的內(nèi)存條,昨天公司給了我一個512的內(nèi)存條,希望能提高一下開發(fā)速度,很欣然的換下以前的一條內(nèi)存,美滋滋的說,我的內(nèi)存終于變成768的了
可是換好內(nèi)存后,重啟電腦,開開Eclipse,部署weblogic,這時Eclipse突然自動關(guān)閉,彈出如下錯誤提示:
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,結(jié)果每次啟動到一半,就彈出以上錯誤,停止啟動,讓我很是郁霉,就google了半天,發(fā)現(xiàn)眾說紛紜,大多是說JDK1.4,JDK1.5與Eclipse 3.0沖突的bug,可是我突然發(fā)現(xiàn)我的Firefox也經(jīng)常無緣無故的中途關(guān)閉,我就感覺可能不是JDK沖突的問題,因?yàn)槲乙郧耙恢睕]有這個問題,難道是因?yàn)閾Q了內(nèi)存的緣故?
案例一問題解決辦法:
刪除解決,網(wǎng)上很多介紹支招建議將.metadata全部刪除,其實(shí)只要簡單查看分析一下操作日志將問題交集的文件刪除即可,這樣原有的項(xiàng)目在打開后仍能顯示。
此外,分析閃退首要的還是檢查環(huán)境變量path和classpath是否配置正確。
案例二問題解決辦法:
把以前的內(nèi)存換回去,重啟就可以了。
eclipse閃退問題解決辦法小編就為大家介紹到這里了,希望對大家有所幫助!