我在发生错误时收到警报 打开日食时...... 该日志文件包含以下错误...
!SESSION 2010-09-03 11:59:03.157 -----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.6.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
!ENTRY org.eclipse.equinox.p2.reconciler.dropins 4 0 2010-09-03 11:59:05.171
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: org.eclipse.equinox.internal.provisional.p2.director; version="0.0.0"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1313)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1297)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:309)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:220)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:330)
!ENTRY org.eclipse.osgi 4 0 2010-09-03 11:59:05.265
!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.ant.core.antRunner, org.eclipse.equinox.app.error, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer, org.eclipse.wst.server.preview.preview, org.eclipse.emf.codegen.CodeGen, org.eclipse.emf.codegen.JMerger, org.eclipse.emf.codegen.ecore.Generator, org.eclipse.emf.importer.rose.Rose2GenModel, org.eclipse.emf.importer.java.Java2GenModel, org.eclipse.emf.importer.ecore.Ecore2GenModel, org.eclipse.datatools.connectivity.console.profile.StorageFileEditor, org.eclipse.jdt.apt.core.aptBuild, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.equinox.p2.metadata.generator.EclipseGenerator, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.pde.junit.runtime.uitestapplication, org.eclipse.pde.junit.runtime.legacytestapplication, org.eclipse.pde.junit.runtime.coretestapplication, org.eclipse.pde.junit.runtime.coretestapplicationnonmain, org.eclipse.pde.junit.runtime.nonuithreadtestapplication, org.eclipse.pde.build.Build, org.eclipse.jdt.core.JavaCodeFormatter, org.eclipse.wst.jsdt.core.JavaCodeFormatter.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
!ENTRY org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
!MESSAGE Bundle reference:file:plugins/org.eclipse.wst.server.http.ui_1.0.200.v20090113.jar was not resolved.
!SUBENTRY 2 org.eclipse.wst.server.http.ui 2 0 2010-09-03 11:59:05.811
!MESSAGE Missing required bundle org.eclipse.ui.forms_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
!MESSAGE Bundle reference:file:plugins/org.eclipse.jst.j2ee.ejb.annotations.ui_1.1.102.v200805140020.jar was not resolved.
!SUBENTRY 2 org.eclipse.jst.j2ee.ejb.annotations.ui 2 0 2010-09-03 11:59:05.811
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
!MESSAGE Bundle reference:file:plugins/org.eclipse.wst.xml.ui_1.1.2.v201001222130.jar was not resolved.
!SUBENTRY 2 org.eclipse.wst.xml.ui 2 0 2010-09-03 11:59:05.811
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
!MESSAGE Bundle reference:file:plugins/org.eclipse.mylyn.tasks.search_3.4.0.v20100608-0100-e3x.jar was not resolved.
!SUBENTRY 2 org.eclipse.mylyn.tasks.search 2 0 2010-09-03 11:59:05.811
!MESSAGE Missing required bundle org.eclipse.jface.text_0.0.0.
!SUBENTRY 2 org.eclipse.mylyn.tasks.search 2 0 2010-09-03 11:59:05.811
!MESSAGE Missing required bundle org.eclipse.ui.forms_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
!MESSAGE Bundle reference:file:plugins/org.eclipse.datatools.sqltools.db.generic_1.0.0.v200906020900.jar was not resolved.
!SUBENTRY 2 org.eclipse.datatools.sqltools.db.generic 2 0 2010-09-03 11:59:05.811
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
!MESSAGE Bundle reference:file:plugins/org.eclipse.wst.xsl.debug.ui_1.0.0.v200904240436.jar was not resolved.
!SUBENTRY 2 org.eclipse.wst.xsl.debug.ui 2 0 2010-09-03 11:59:05.811
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.4.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
!MESSAGE Bundle reference:file:plugins/org.eclipse.jst.server.ui_1.1.0.v20090421.jar was not resolved.
!SUBENTRY 2 org.eclipse.jst.server.ui 2 0 2010-09-03 11:59:05.811
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2010-09-03 11:59:05.811
答案 0 :(得分:1)
似乎缺少org.eclipse.jface.text插件。哪个应该在任何Eclipse安装中。现在确定为什么不存在,但是如果你仔细阅读日志,你会看到这个依赖序列,并指出哪些包丢失了。缺少没有其他依赖关系的东西就不存在了。
答案 1 :(得分:1)
检查PATH / JAVA_HOME环境变量中的JDK - 就我而言,它对于eclipse来说太旧了。我更新了这些变量以指向新的JDK,问题就消失了。
答案 2 :(得分:0)
我会再次下载它。它不需要很长时间,您可以获得一个更新的版本,可能有助于避免将来出现类似情况。
答案 3 :(得分:0)
对我而言,这个问题已经解决了
控制面板 - >高级系统设置 - >环境变量 - >
现在你必须做两件事:
1 - 创建一个新变量
变量名= JAVA_HOME
变量值= C:\ Program Files \ Java \ jdk1.7.0_01
2编辑路径变量并在其末尾添加;%JAVA_HOME%\ bin