2 weixin 40371800 weixin_40371800 于 2018.01.03 20:20 提问

安装了jdk,环境变量也配置好了,但是eclipse打不开,错误信息如下,求助,急!!!!!!

!SESSION 2018-01-03 19:56:48.518 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=9.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CN
Framework arguments: -product com.android.ide.eclipse.adt.package.adtproduct
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product com.android.ide.eclipse.adt.package.adtproduct

!ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2018-01-03 19:56:51.800
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612 [5]" 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:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
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-01-03 19:56:51.815
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar was not resolved.

!ENTRY org.eclipse.osgi 2 0 2018-01-03 19:56:51.847
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-01-03 19:56:51.847
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.simpleconfigurator 2 0 2018-01-03 19:56:51.847
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.1))(&(osgi.ee=JavaSE)(version=1.4)))".

!ENTRY org.eclipse.osgi 2 0 2018-01-03 19:56:51.862
!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-01-03 19:56:51.862
!MESSAGE Bundle org.eclipse.equinox.simpleconfigurator_1.0.301.v20120914-163612 [5] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.simpleconfigurator 2 0 2018-01-03 19:56:51.862
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.1))(&(osgi.ee=JavaSE)(version=1.4)))".

!ENTRY org.eclipse.osgi 4 0 2018-01-03 19:56:51.894
!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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

14个回答

sinat_34344123
sinat_34344123   2018.01.03 20:35
已采纳

是版本不匹配。这有一个1.8 64位的。换成这个就可以解决你这个问题了。
https://pan.baidu.com/s/1mhYdXSc

ruader
ruader   2018.01.03 20:34

重装jdk, 重装eclipse即可

qq_41541756
qq_41541756   2018.01.03 20:25

jdk与eclipse版本不兼容,eclipse自带jdk,不用另外下载jdk,建议吧jdk删除,重新安装eclipse。如若不行,再看一下内存是否不足,可以吧程序换到内存足的系统盘,再从官网下载合适的版本

weixin_40371800
weixin_40371800 版本都是64位的,内存也够啊
20 天之前 回复
f1004168799
f1004168799   2018.01.03 20:25

win10还是什么平台

weixin_40371800
weixin_40371800 win10
20 天之前 回复
f1004168799
f1004168799   2018.01.03 20:27

我看到你是jdk9
你可以试一下
在X:\Program Files\eclipse\eclipse.ini
在文件末尾添加一行:
--add-modules=ALL-SYSTEM

X是你的安装盘符

qq_34925064
qq_34925064   2018.01.03 20:31

你的jdk版本,与eclipse版本不兼容

weixin_38421119
weixin_38421119   2018.01.03 20:42

###你好:
如果我猜的没错,你JDK安装和配置的应该是JDK9.0.1的.
现在Eclipse最高只支持JDK1.8
你只需要安装JDK1.8重新配置环境变量即可.
如果还有问题,可以加我QQ详聊。
QQ:**1602586227 **

weixin_40371800
weixin_40371800   2018.01.03 20:59

问题已解决,谢谢大家

qq_36940120
qq_36940120   2018.01.03 21:11

马士兵2017全年的视频讲解包含(java基础讲解 架构大数据 机器学习 人工智能 ) 全方位的视频和源码 ,技术扶持群 里面工作年限超十年的15名,项目经理也有数个,可以了解面试方面的事情,解决一些bug不是事,群号是233025331,欢迎大家前来,谢谢

weixin_37219633
weixin_37219633   2018.01.03 22:56

版本问题吧, 一个32位 一个64位

共14条数据 1 尾页
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!