2013-04-08 85 views
5

我正在使用Eclipse v21.10.1-569685和JDK版本1.7.0_13-b20 當我下載新的更新(幫助 - >安裝新軟件)之後的Eclipse讓我重新啓動軟件,但我碰到這樣的錯誤:java.lang.RuntimeException:在註冊表中找不到應用程序「org.eclipse.ui.ide.workbench」

!SESSION 2013-04-10 06:49:45.348 ----------------------------------------------- 
     eclipse.buildId=v21.1.0-569685 
     java.version=1.7.0_13 
     java.vendor=Oracle Corporation 
     BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US 
     Framework arguments: -product com.android.ide.eclipse.adt.package.product 
     Command-line arguments: -os win32 -ws win32 -arch x86 -product com.android.ide.eclipse.adt.package.product 

     !ENTRY org.eclipse.osgi 2 0 2013-04-10 06:49:47.671 
     !MESSAGE One or more bundles are not resolved because the following root constraints are not resolved: 
     !SUBENTRY 1 org.eclipse.osgi 2 0 2013-04-10 06:49:47.671 
     !MESSAGE Bundle reference:file:plugins/org.eclipse.e4.ui.workbench.addons.swt_0.10.1.v20120827-151636.jar was not resolved. 
     !SUBENTRY 2 org.eclipse.e4.ui.workbench.addons.swt 2 0 2013-04-10 06:49:47.672 
     !MESSAGE Missing required bundle org.eclipse.e4.ui.model.workbench_0.9.1. 
     !SUBENTRY 1 org.eclipse.osgi 2 0 2013-04-10 06:49:47.672 
     . 
     . 
     . 
     . 

     !ENTRY org.eclipse.osgi 4 0 2013-04-10 06:49:47.941 
     !MESSAGE Application error 
     !STACK 1 
     java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. The applications available are: org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.ant.core.antRunner, org.eclipse.cdt.codan.core.application, org.eclipse.cdt.core.GeneratePDOM, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.jdt.core.JavaIndexer. 
      at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248) 
      at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29) 
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 
      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) 
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
      at java.lang.reflect.Method.invoke(Unknown Source) 
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) 
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) 
      at org.eclipse.equinox.launcher.Main.run(Main.java:1438) 

我應該怎麼做,以運行Eclipse?

回答

4

好,謝謝大家我找到了解決辦法,這是如下:

  1. 控制面板→查看高級系統設置→高級選項卡→環境變量
  2. 現在你要做的兩兩件事:

    1. 創建一個新變量(點擊新建按鈕):

      • 變量名:JAVA_HOME
      • 變量值:C:\Program Files\Java\[your Java Version]
    2. 編輯Path變量和它添加到的,端:

      ;%JAVA_HOME%\bin 
      
+0

好!如果你安裝MinGW和MinSYS,你必須將他們的bin路徑添加到Path變量,所以現在我明白你的問題了。 – 42n4 2013-04-15 12:37:14

+0

遇到同樣的問題,您編輯了路徑變量...在哪裏? – 2016-09-01 08:27:08

0

「org.eclipse.ui.ide.workbench」應用程序包含在org.eclipse.platform插件中。這個插件不包含在你的實例中,因爲某些原因。也許,安裝ADT使其無效。 嘗試恢復舊配置(幫助>關於>安裝詳細信息>安裝歷史記錄)並重新安裝ADT。

0

也許eclipse -clean會幫忙嗎?首先從幫助 - >安裝 - >已安裝的東西中刪除插件,然後從市場中安裝adt,使用Eclipse for Java或C++開發人員(這與Java模式一致)。

2

DELETE(或者只是移動到一個臨時文件夾)$ home/.eclipse文件夾(即con無花果文件夾)。

它爲我工作。

相關問題