[英]Eclipse Broke After uninstalling old Java version
I was using eclipse and Java recommended me to delete the old version (I think it was jre10 ...).我正在使用 eclipse,Java 建议我删除旧版本(我认为是 jre10 ...)。 Now when I load eclipse it kept giving me an error and telling me to check the log file.
现在,当我加载 eclipse 时,它一直给我一个错误并告诉我检查日志文件。 I have now deleted eclipse from my computer and installed e(fx)clipse.
我现在已经从我的电脑中删除了 eclipse 并安装了 e(fx)clipse。 The same error is occuring and I am not sure how to fix it.
发生了同样的错误,我不知道如何修复它。 Log file:
日志文件:
https://pastebin.com/8n8ziUrW https://pastebin.com/8n8ziUrW
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError:
javax/annotation/PostConstruct
... ...
You need either a newer version of Eclipse, or to run it with an older release of Java.您需要较新版本的 Eclipse,或者使用较旧版本的 Java 运行它。 Java 9 deprecated and Java 11 removed the
javax.annotation
package, among others. Java 9 已弃用,Java 11 删除了
javax.annotation
包等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.