eclipse启动报错

报错:

An error has occurred. See the log file C:\eclipse\1711430260036.log

原因: 因为 eclipse控制设置的jdk是1.6, 安装了jdk11后,系统默认jdk是jdk11,所以找不到对应的jdk6.

解决方法:将jdk11的配置 从 计算机-》高级系统设置-》path里面移除即可

查看提示的日志文件内容

!SESSION 2024-03-26 14:09:34.211 -----------------------------------------------

eclipse.buildId=4.3.0.I20130605-2000

java.version=11.0.22

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.osgi 4 0 2024-03-26 14:10:30.308

!MESSAGE Startup error

!STACK 1

java.lang.RuntimeException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.

at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:233)

at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:656)

at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:275)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)

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:566)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)

at org.eclipse.equinox.launcher.Main.run(Main.java:1450)

at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start() of bundle org.eclipse.osgi.

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)

at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:225)

... 11 more

Caused by: java.lang.IllegalStateException: The System Bundle could not be resolved: Missing Constraint: Bundle-RequiredExecutionEnvironment: J2SE-1.5

at org.eclipse.osgi.internal.baseadaptor.BaseStorage.checkSystemState(BaseStorage.java:827)

at org.eclipse.osgi.internal.baseadaptor.BaseStorage.getStateManager(BaseStorage.java:800)

at org.eclipse.osgi.baseadaptor.BaseAdaptor.getState(BaseAdaptor.java:387)

at org.eclipse.osgi.internal.baseadaptor.BaseStorage.frameworkStart(BaseStorage.java:923)

at org.eclipse.osgi.baseadaptor.BaseAdaptor.frameworkStart(BaseAdaptor.java:250)

at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:60)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)

... 13 more

相关推荐
FlyingBird~10 分钟前
CocosCreator 之 JavaScript/TypeScript和Java的相互交互
java·javascript·typescript
神仙别闹1 小时前
基于Java+VUE+MariaDB实现(Web)仿小米商城
java·前端·vue.js
风象南1 小时前
SpringBoot的4种抽奖活动实现策略
java·spring boot·后端
蓝桉~MLGT1 小时前
java高级——高阶函数、如何定义一个函数式接口类似stream流的filter
java·开发语言·python
甜甜的资料库1 小时前
基于微信小程序的作业管理系统源码数据库文档
java·数据库·微信小程序·小程序
有梦想的骇客7 小时前
书籍“之“字形打印矩阵(8)0609
java·算法·矩阵
yours_Gabriel7 小时前
【java面试】微服务篇
java·微服务·中间件·面试·kafka·rabbitmq
这个家伙很笨9 小时前
了解Android studio 初学者零基础推荐(4)
android·ide·android studio
hashiqimiya9 小时前
android studio中修改java逻辑对应配置的xml文件
xml·java·android studio
liuzhenghua6610 小时前
Python任务调度模型
java·运维·python