Eclipse不能正常启动

 今天从同事那里拷贝了一个Eclipse,但是在启动Eclipse时报错,报错现象:
Eclipse不能正常启动_第1张图片按照提示打开日志文件,报错信息如下:
!ENTRY org.eclipse.equinox.common 4 0 2014-10-20 14:18:33.275
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.0/Foundation-1.0,J2SE-1.3
 at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:294)
 at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
 at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
 at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
 at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)

!ENTRY org.eclipse.update.configurator 4 0 2014-10-20 14:18:33.287
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1.4,CDC-1.0/Foundation-1.0,J2SE-1.3
 at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:294)
 at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
 at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
 at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
 at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)

!ENTRY org.eclipse.core.runtime 4 0 2014-10-20 14:18:33.291
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.0/Foundation-1.0,J2SE-1.3
 at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:294)
 at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:329)
 at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1046)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:573)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:495)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:275)
 at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:455)
 at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:189)
 at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:291)

!ENTRY org.eclipse.osgi 4 0 2014-10-20 14:18:33.294
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.common_3.2.0.v20060603.jar/ was not resolved.

!ENTRY org.eclipse.osgi 4 0 2014-10-20 14:18:33.295
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.update.configurator_3.2.2.R32x_v20070111.jar/ was not resolved.

!ENTRY org.eclipse.osgi 4 0 2014-10-20 14:18:33.295
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.core.runtime_3.2.0.v20060603.jar/ was not resolved.

!ENTRY org.eclipse.osgi 4 0 2014-10-20 14:18:33.297
!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:65)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
 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.core.launcher.Main.invokeFramework(Main.java:336)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
 at org.eclipse.core.launcher.Main.run(Main.java:977)
 at org.eclipse.core.launcher.Main.main(Main.java:952)

 

解决方案:

1、如果电脑配置了多个版本的JDK,查看本机运行时使用的JDK版本。

               方法:cmd  ---->   java -version     ---->查看JDK版本

      1.1    使用版本较低的JDK

                    方法:将低版本的JDK对应环境变量中path里java的路径,移至最path路径的最前面。

2、如果电脑值配置了一个JDK,下载并安装一个低版本的JDK。

报错原因:

     电脑JDK版本太高,eclipse不支持。

 

 

 

 

你可能感兴趣的:(eclipse启动报错,jdk版本问题)