2013-11-03 66 views
4

在eclipse中啓動運行時工作臺時遇到問題。新的eclipse打開,但在「加載工作臺」指令中崩潰。加載運行時工作臺時Eclipse崩潰

我試過幾件事情已經,即:

rm -r .metadata 

./eclipse -clean -clearPersistedState 

我也試着刪除.snap文件,該文件workbench.xmi,我試圖卸載和重新安裝Eclipse,這沒有幫助。

下面是從崩潰日誌:

!ENTRY org.eclipse.core.net 1 0 2013-11-03 21:44:52.276 
!MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences 

!ENTRY org.eclipse.ui.workbench 4 2 2013-11-03 21:44:54.013 
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". 
!STACK 0 
java.lang.NullPointerException 
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.getLastMigration(MigrationSupport.java:232) 
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.baseChangedSinceLastPresentationOfWizard(MigrationSupport.java:193) 
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.performMigration(MigrationSupport.java:71) 
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.earlyStartup(AutomaticUpdateScheduler.java:89) 
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87) 
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$55.run(Workbench.java:2551) 
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) 

!ENTRY org.eclipse.ui 4 4 2013-11-03 21:44:54.028 
!MESSAGE Unhandled Exception 

!ENTRY org.eclipse.equinox.p2.ui.sdk.scheduler 4 0 2013-11-03 21:44:54.030 
!MESSAGE Unable to execute early startup code for an extension 
!STACK 0 
java.lang.NullPointerException 
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.getLastMigration(MigrationSupport.java:232) 
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.baseChangedSinceLastPresentationOfWizard(MigrationSupport.java:193) 
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.migration.MigrationSupport.performMigration(MigrationSupport.java:71) 
at org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdateScheduler.earlyStartup(AutomaticUpdateScheduler.java:89) 
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87) 
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$55.run(Workbench.java:2551) 
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) 

是否有人有一個解決這個特殊的問題?我從找不到解決方案變得瘋狂。

否則,我將不得不格式化並重新安裝一切嗎?

謝謝你們,如果你能幫忙!

+0

看起來像Eclipse錯誤https://bugs.eclipse.org/bugs/show_bug.cgi?id=410262它沒有解決。嘗試啓動Eclipse,指定一個新的空工作區。 –

+0

@ greg-449沒有工作......這很煩人。 – Drayae

回答

4

確定所有的Eclipse文件和材料亂搞後,我找到了解決辦法:

我不得不用新的工作空間,這不是當前工作區中的父文件夾,解釋:

舊的工作區:

somefolder/parentfolder/workspace/ 

在parentfolder每個工作區/損壞,所以每個我這個文件夾中嘗試新的工作區時,它沒有工作

通過使用這種類型的工作空間,這個問題是不存在了:

somefolder/workspace 

我給你的意見,如果發生這種情況:不要只使用父文件夾嘗試的工作空間,但一個完全隨機的其他文件夾中。

希望這可以幫助處於相同位置的其他人。

+0

一天掙扎重新安裝JRE,Eclipse,甚至通過目標平臺瞄準的應用程序! –

3

我得到了同樣的錯誤。我能夠使用./eclipse -clean -clearPersistedState運行它,但後來又發生了另一個「在目錄中不可能鎖定」的錯誤,並通過給eclipse文件夾及其內容授予777權限來解決此問題。

0

這對我有效。

cd /Applications/adt-bundle-mac-x86_64-20140702/eclipse/Eclipse.app/Contents/MacOS 

內。然後在那裏你會看到兩個文件eclipseeclipse.ini

你想運行此命令./eclipse -clean -clearPersistedState

Eclipse將啓動,建立你的工作空間,然後重新啓動。然後一切都很好。很好去!