Eclipse无法打开软件

Eclipse在启动时遇到错误java.lang.NoClassDefFoundError: javax/annotation/PreDestroy。问题可能由JDK版本不匹配引起,特别是JDK9。尝试在eclipse.ini中添加--add-modules=ALL-SYSTEM并未解决问题。检查环境变量发现JAVA_HOME指向JDK1.8,但java -version显示为JDK9。原因是PATH变量中C:WINDOWSsystem32在%JAVA_HOME%in之前,导致命令行优先找到JRE9的java.exe。解决方案是将%JAVA_HOME%in置于PATH变量最前。
摘要由CSDN通过智能技术生成

Eclipse打开软件时报错:

!ENTRYorg.eclipse.e4.ui.workbench 4 0 2018-04-03 18:46:47.188

!MESSAGEFrameworkEvent ERROR

!STACK0

java.lang.NoClassDefFoundError:javax/annotation/PreDestroy

atorg.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)

atorg.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)

atorg.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)

atorg.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)

atorg.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)

atorg.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)

atorg.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:99)

atorg.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:141)

atorg.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)

atorg.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)

atorg.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值