Eclipse没有打开; "未解决的要求"

时间:2017-06-26 01:33:29

标签: java eclipse

我一直用Java编写一个小项目,并且不知道今天和上周之间发生了什么变化,但由于某些原因我的Eclipse没有打开,错误日志发出了巨大的错误消息,由于字符限制,我无法在此粘贴大部分内容。以下是错误消息的开头:

!SESSION 2017-06-25 21:09:24.945 -----------------------------------------------
eclipse.buildId=4.4.2.M20150204-1700
java.version=1.6.0_65
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -keyring /Users/meiragoldman/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.java.product -keyring /Users/meiragoldman/.eclipse_keyring -showlocation

!ENTRY org.eclipse.equinox.ds 4 0 2017-06-25 21:09:25.660
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.equinox.ds [133]
  Unresolved requirement: Import-Package: org.eclipse.equinox.internal.util.event; version="1.0.0"
    -> Export-Package: org.eclipse.equinox.internal.util.event; bundle-version="1.0.500.v20130404-1337"; bundle-symbolic-name="org.eclipse.equinox.util"; version="1.0.0"; x-friends:="org.eclipse.equinox.ds"
       org.eclipse.equinox.util [181]
         Unresolved requirement: Import-Package: org.osgi.service.cm; version="1.0.0"

    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.equinox.event 4 0 2017-06-25 21:09:25.663
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.equinox.event [134]
  Unresolved requirement: Import-Package: org.osgi.service.event; version="[1.3.0,1.4.0)"

    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

!ENTRY org.eclipse.ant.ui 4 0 2017-06-25 21:09:25.670
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.ant.ui [57]
  Unresolved requirement: Require-Bundle: org.eclipse.ui.externaltools; bundle-version="[3.2.0,4.0.0)"
  Unresolved requirement: Require-Bundle: org.eclipse.ui.editors; bundle-version="[3.2.0,4.0.0)"; resolution:="optional"
    -> Bundle-SymbolicName: org.eclipse.ui.editors; bundle-version="3.8.200.v20140401-1310"; singleton:="true"
       org.eclipse.ui.editors [348]
         Unresolved requirement: Require-Bundle: org.eclipse.ui.ide; bundle-version="[3.5.0,4.0.0)"
           -> Bundle-SymbolicName: org.eclipse.ui.ide; bundle-version="3.10.2.v20141118-1227"; singleton:="true"
              org.eclipse.ui.ide [507]
                Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version="[3.106.0,4.0.0)"
                  -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.1.v20141002-1150"; singleton:="true"
                     org.eclipse.ui [506]
                       Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench; bundle-version="[3.105.0,4.0.0)"; visibility:="reexport"
                         -> Bundle-SymbolicName: org.eclipse.ui.workbench; bundle-version="3.106.2.v20150204-1030"; singleton:="true"
                            org.eclipse.ui.workbench [511]
                              Unresolved requirement: Import-Package: org.eclipse.e4.ui.internal.workbench
                                -> Export-Package: org.eclipse.e4.ui.internal.workbench; bundle-version="1.2.2.v20141212-1259"; bundle-symbolic-name="org.eclipse.e4.ui.workbench"; version="0.0.0"; x-friends:="org.eclipse.e4.ui.workbench.fragment,  org.eclipse.e4.ui.workbench.renderers.swt,  org.eclipse.e4.ui.workbench.swt,  org.eclipse.ui.workbench"
                                   org.eclipse.e4.ui.workbench [471]
                                     Unresolved requirement: Require-Bundle: org.eclipse.e4.ui.services; bundle-version="0.9.0"
                                       -> Bundle-SymbolicName: org.eclipse.e4.ui.services; bundle-version="1.1.0.v20140328-1925"; singleton:="true"
                                          org.eclipse.e4.ui.services [94]
                                            Unresolved requirement: Import-Package: org.osgi.service.event; resolution:="optional"
                                            Unresolved requirement: Require-Bundle: org.eclipse.e4.ui.di; bundle-version="0.9.0"
                                              -> Bundle-SymbolicName: org.eclipse.e4.ui.di; bundle-version="1.0.0.v20140328-2112"
                                                 org.eclipse.e4.ui.di [92]
                                                   Unresolved requirement: Require-Bundle: org.eclipse.e4.core.di.extensions; bundle-version="0.9.0"
                                                     -> Bundle-SymbolicName: org.eclipse.e4.core.di.extensions; bundle-version="0.12.0.v20140417-2033"; singleton:="true"
                                                        org.eclipse.e4.core.di.extensions [86]
                                                          Unresolved requirement: Require-Bundle: org.eclipse.osgi.services; bundle-version="3.2.100"
  Unresolved requirement: Require-Bundle: org.eclipse.ui.ide; bundle-version="[3.2.0,4.0.0)"; resolution:="optional"
    -> Bundle-SymbolicName: org.eclipse.ui.ide; bundle-version="3.10.2.v20141118-1227"; singleton:="true"
  Unresolved requirement: Require-Bundle: org.eclipse.ui.workbench.texteditor; bundle-version="[3.5.0,4.0.0)"; resolution:="optional"
    -> Bundle-SymbolicName: org.eclipse.ui.workbench.texteditor; bundle-version="3.9.0.v20140411-1521"; singleton:="true"
       org.eclipse.ui.workbench.texteditor [363]
         Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version="[3.5.0,4.0.0)"
           -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.1.v20141002-1150"; singleton:="true"
  Unresolved requirement: Require-Bundle: org.eclipse.ui.views; bundle-version="[3.2.0,4.0.0)"; resolution:="optional"
    -> Bundle-SymbolicName: org.eclipse.ui.views; bundle-version="3.7.0.v20140408-0703"; singleton:="true"
       org.eclipse.ui.views [359]
         Unresolved requirement: Require-Bundle: org.eclipse.ui; bundle-version="[3.5.0,4.0.0)"
           -> Bundle-SymbolicName: org.eclipse.ui; bundle-version="3.106.1.v20141002-1150"; singleton:="true"

    at org.eclipse.osgi.container.Module.start(Module.java:434)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1561)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
    at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
    at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
    at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

1 个答案:

答案 0 :(得分:0)

根据this thread,答案是:

var circle = new ProgressBar.Circle('#bar', {
  strokeWidth: 4,
  color: '#000'

});
circle.animate(1);

var circle = new ProgressBar.Circle('#bar2', {
  strokeWidth: 4,
  color: '#000'

});
circle.animate(1);

var circle = new ProgressBar.Circle('#bar3', {
  strokeWidth: 4,
  color: '#000'

});
circle.animate(1);

试试这个解决方案,它会起作用。