无法初始化类 org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17934548/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Could not initialize class org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants
提问by Tezza
I am Running Eclipse Kelper Build id: 20130614-0229 (the latest at time of writing)
我正在运行 Eclipse Kelper 构建 ID:20130614-0229(撰写本文时的最新版本)
I have installed the Web Tools Platform (WTP) and I am using a 'static web project'.
我已经安装了 Web 工具平台 (WTP),并且正在使用“静态 Web 项目”。
I keep getting an error alert box popping up with the error
我不断收到错误警告框弹出错误
Could not initialize class org.eclipse.jst.j2ee.project.facet.IJ2EEFacetConstants
Okay I have searched high and low for a solution, but of course the solution seems to be different for every version of eclipse. I went to a bug post on this at https://bugs.eclipse.org/bugs/show_bug.cgi?id=389968
好的,我已经搜索了高低的解决方案,但是当然,每个版本的 eclipse 的解决方案似乎都不同。我在https://bugs.eclipse.org/bugs/show_bug.cgi?id=389968上找到了一个关于这个的错误帖子
but the advice was just to "get the right version of EPP for your workspace"
但建议只是“为您的工作区获取正确版本的 EPP”
Okay so that advice is no help at all. How does one know what is the right version of their workspace? what do they mean by that anyway? by "for your workspace" are they referring to your version of Eclipse? or is that a separate issue?
好吧,这个建议根本没有帮助。如何知道他们工作区的正确版本是什么?他们到底是什么意思?“为您的工作区”是指您的 Eclipse 版本吗?或者这是一个单独的问题?
I saw another response to this issue on stack overflow for Eclipse Juno, but it was simply a link to a temporary patch update site which no longer exists. Someone else on that thread claimed that Kelper had a fix for all of this. Clearly that is not the case and the people at Eclipse.org do not think this is a bug.
我在 Eclipse Juno 的堆栈溢出中看到了对此问题的另一个回应,但它只是一个指向不再存在的临时补丁更新站点的链接。该线程上的其他人声称 Kelper 可以解决所有这些问题。显然,情况并非如此,Eclipse.org 的人不认为这是一个错误。
回答by user168
From update site, install below item:
|> Web, XML, Java EE and OSGi Enterprise Development
* Eclipse Java EE Developer Tools
从更新站点,安装以下项目:
|> Web、XML、Java EE 和 OSGi Enterprise Development
* Eclipse Java EE Developer Tools
回答by Konstantin Komissarchik
I would guess that you are seeing this issue because you have not installed enough of WTP. That doesn't make this problem less of an issue, but at least you can look for workarounds in how you construct your installation. The easiest solution is to grab the "Eclipse IDE for Java EE Developers" package.
我猜你看到这个问题是因为你没有安装足够的 WTP。这并没有使这个问题成为一个小问题,但至少您可以在构建安装的方式中寻找解决方法。最简单的解决方案是获取“Eclipse IDE for Java EE Developers”包。
回答by Archimedes Trajano
You need to install the JST Enterprise Corefeature, org.eclipse.jst.enterprise_core.feature
您需要安装JST Enterprise Core功能,org.eclipse.jst.enterprise_core.feature