th002a
th002a
采纳率0%
2018-06-05 16:17 阅读 2.1k

eclipse 运行错误,求大神解答

5

eclipse 运行错误,求大神解答,(ecliose V4.6_64位,java_64位,系统win7_64位)
!SESSION 2018-06-06 00:12:23.776 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2018-06-06 00:12:24.132
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-1438 [2]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1327)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1311)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.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.osgi 4 0 2018-06-06 00:12:24.135
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-1438.jar/ was not resolved.

!ENTRY org.eclipse.osgi 2 0 2018-06-06 00:12:24.140
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-06-06 00:12:24.140
!MESSAGE Bundle javax.transaction_1.1.1.v201105210645 [1] was not resolved.
!SUBENTRY 2 javax.transaction 2 0 2018-06-06 00:12:24.140
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1.5
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-06-06 00:12:24.141
!MESSAGE Bundle org.eclipse.equinox.simpleconfigurator_1.0.200.v20110815-1438 [2] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.simpleconfigurator 2 0 2018-06-06 00:12:24.141
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4

!ENTRY org.eclipse.osgi 4 0 2018-06-06 00:12:24.142
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • weixin_38652136 邪恶八进制 2018-06-06 00:38

    这种情况发生在你只安装eclipse-common软件包时,你必须安装eclipse-java或eclipse-cpp软件包,最好的办法就是直接重装,如果不想重装的话找到他缺少的部分copy一下。
    1. 删除configuration 目录

    1. 新建config.ini 文件

      将以下内容拷贝进去:

     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    
    
    1. 重新启动eclipse 会自动生成新的配置文件。
    点赞 3 评论 复制链接分享
  • jaquechen 星辰志 2018-06-06 06:44

    在工程上右键属性java Build Path进入Libraries导入Add External Jars...导入tomcat的JAR包

    点赞 1 评论 复制链接分享
  • weixin_40424918 weixin_40424918 2018-06-06 06:46

    这种情况发生在你只安装eclipse-common软件包时,你必须安装eclipse-java或eclipse-cpp软件包,最好的办法就是直接重装,如果不想重装的话找到他缺少的部分copy一下。
    1. 删除configuration 目录

    新建config.ini 文件

    将以下内容拷贝进去:

    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

    重新启动eclipse 会自动生成新的配置文件。

    点赞 1 评论 复制链接分享

相关推荐