由于org.eclipse.core.runtime无法启动eclipse

时间:2013-02-08 14:25:51

标签: java eclipse osgi helios

我将一些插件复制到我的eclipse安装中(特别是绿色和ObjectAid来自answer)。
我删除了它们(因为它不起作用)但现在我无法启动eclipse(即使使用eclipse -clean)。
我明白了:

  

!会话2013-02-08 16:21:16.949   ----------------------------------------------- eclipse.buildId = M20110210-1200 java.version = 1.6.0_29 java.vendor = Sun.   Microsystems Inc. BootLoader常量:OS = win32,ARCH = x86,WS = win32,   NL = el_GR框架参数:-product   org.eclipse.epp.package.jee.product命令行参数:-os win32   -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -clean

     

!ENTRY org.eclipse.osgi 4 0 2013-02-08 16:21:17.779!MESSAGE   应用程序错误!STACK 1 java.lang.IllegalStateException:无法执行   获得应用服务。确保org.eclipse.core.runtime   bundle已解析并启动(请参阅config.ini)。在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)at   sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)at   java.lang.reflect.Method.invoke(未知来源)at   org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)at at   org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)at at   org.eclipse.equinox.launcher.Main.run(Main.java:1408)

我的config.ini似乎没问题。我将它与Eclipse Helios的下载版本进行了比较,它们是相同的。

#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser   
#Fri Feb 08 14:57:16 EET 2013  
org.eclipse.update.reconcile=false  
eclipse.p2.profile=epp.package.jee  
osgi.instance.area.default=@user.home/workspace  
osgi.framework=file\:plugins/org.eclipse.osgi_3.6.2.R36x_v20110210.jar  
equinox.use.ds=true  
eclipse.buildId=M20110210-1200  
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar@1\:start  
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info  
eclipse.product=org.eclipse.platform.ide  
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform  
osgi.framework.extensions=  
osgi.bundles.defaultStartLevel=4  
eclipse.application=org.eclipse.ui.ide.workbench  
eclipse.p2.data.area=@config.dir/../p2/  

我该如何解决这个问题?

在插件文件夹中有所作为我看到以下缺失:

C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jem.workbench_2.0.300.v200910290230.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jem_2.0.400.v201005110200.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.common.frameworks_1.1.403.v201012160000.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.common.ui_1.0.3.v201101101700.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.j2ee.core_1.2.4.v201102101900.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.j2ee.web_1.1.404.v201102030400.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.j2ee_1.1.404.v201102081800.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.jee_1.0.302.v201101122300.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.jsp.core_1.2.304.v201102160550.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.jsp.ui_1.1.503.v201101262228.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.server.core_1.2.101.v20100421.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.jst.server.ui_1.1.101.v20100823b.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.common.emfworkbench.integration_1.2.3.v201012020600.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.common.frameworks_1.2.0.v201003040800.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.common.modulecore.ui_1.0.4.v201101101700.jar   
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.common.modulecore_1.2.5.v201101270100.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.css.core_1.1.402.v201102031915.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.dtd.core_1.1.401.v201101122255.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.html.core_1.1.404.v201101190004.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.internet.monitor.core_1.0.404.v20090609.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.internet.monitor.ui_1.0.405.v20100309.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.jsdt.core_1.1.4.v201102102045.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.jsdt.debug.core_1.0.3.v201011040143.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.jsdt.debug.rhino_1.0.1.v201008170101.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.jsdt.debug.ui_1.0.3.v201011040143.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.jsdt.ui_1.1.4.v201102160540.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.jsdt.web.core_1.0.304.v201102160550.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.jsdt.web.support.jsp_1.0.303.v201012160047.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.jsdt.web.ui_1.0.304.v201012160349.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.server.core_1.1.206.v20110110.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.server.discovery_1.0.101.v20100707.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.server.ui.doc.user_1.1.300.v201005192125.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.server.ui_1.1.207.v20110119.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.sse.core_1.1.504.v201102160550.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.sse.ui_1.2.3.v201102102045.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.standard.schemas_1.0.300.v201004110600.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.validation.ui_1.2.204.v201004150700.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.validation_1.2.201.v201101270100.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.web.ui_1.1.400.v201004141630.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.web_1.1.402.v201012160000.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.ws.explorer_1.0.507.v201004220342.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.ws.service.policy.ui_1.0.202.v201004211732.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.wsdl.ui_1.2.304.v201012071645.jar    
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.wsdl_1.2.104.v201012082239.jar    
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.xml.core_1.1.503.v201102102045.jar  
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.xml.ui_1.1.103.v201101122108.jar
C:\eclipse-jee-helios-SR2-win32\eclipse\plugins\org.eclipse.wst.xsd.ui_1.2.304.v201101251958.jar

3 个答案:

答案 0 :(得分:3)

我想你可能已经删除了'plugins'目录中的一些关键文件夹。如果我是你,我会将目录明确的新安装和提取的Eclipse安装内容与启动时出现问题的内容进行比较。

答案 1 :(得分:0)

发生此错误的原因是您在删除插件时删除了config.ini文件。因此,当eclipse启动时无法在config.ini中找到配置时,它会使用与您的操作系统不兼容的默认配置。以下步骤解决了您的问题:

  1. 删除配置文件夹中的设置。
  2. 创建一个新的config.ini文件。
  3. 复制以下设置并保存。
  4. 重启Eclipse。
  5. 以下是设置:

    osgi.splashPath = platform:/base/plugins/org.eclipse.platform  
    osgi.bundles=org.eclipse.equinox.common@2:start, 
        org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start  
    eclipse.product=org.eclipse.sdk.ide  
    osgi.instance.area.default=@user.home/workspace  
    eof=eof
    

答案 2 :(得分:0)

我今天遇到了同样的问题,因为我的计算机被无法关闭,我以这种方式解决了:

  • 找到配置目录.eclipse(通常在windows C:\Users\{user}\.eclipse\{eclipse version}
  • 删除该目录
  • 重启eclipse

因此将重新创建config目录,您应该重新下载插件