Java 无法在 Eclipse Luna 中创建动态 Web 项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25910341/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 01:27:40  来源:igfitidea点击:

Not able to create Dynamic web project in Eclipse Luna

javaeclipseeclipse-luna

提问by Gaurav51289

I have installed Eclipse Luna for windows 64 bit. But I am not able to create a new Dynamic Web Project. I also installed Web, XML, Java EE and OSGi Enterprise Development, but still it shows only Static Web Project inside Web projects.

我已经为 Windows 64 位安装了 Eclipse Luna。但我无法创建新的动态 Web 项目。我还安装了Web、XML、Java EE 和 OSGi Enterprise Development,但它仍然只显示 Web 项目中的静态 Web 项目。

Is there anything else to be installed ?

还有什么要安装的吗?

采纳答案by kirti

you need the Web Tools Platform package for this add it to your eclipse through Help > install new software.

为此,您需要 Web Tools Platform 包,通过 Help > install new software 将其添加到您的 eclipse 中。

Then add the software repository site location for WTP for your version of eclipse.

然后为您的 eclipse 版本添加 WTP 的软件存储库站点位置。

http://download.eclipse.org/webtools/updates/

回答by k3g

You need to go to http://download.eclipse.org/releases/indigoor luna or whatever version of eclipse you are using and select Web, XML, Java EE and OSGi Enterprise Development.

您需要访问 http://download.eclipse.org/releases/indigo或 luna 或您使用的任何版本的 eclipse,然后选择 Web、XML、Java EE 和 OSGi Enterprise Development。

回答by Tom

I think the accepted answer is not the recommended solution. In Luna you should install Web Tools Platform via the Luna download site, not the WTC download site.

我认为接受的答案不是推荐的解决方案。在 Luna 中,您应该通过 Luna 下载站点而不是 WTC 下载站点安装 Web Tools Platform。

Here are the instructions:
https://wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F

以下是说明:https:
//wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F

Here is what happens if you use WTP site:
Can't install WTP (Web Tools Platform) in Eclipse - something about missing dependencies...?

如果您使用 WTP 站点,会发生以下情况:
无法在 Eclipse 中安装 WTP(Web 工具平台)- 缺少依赖项...?

Yes, I see that the asker says he has done this, so I guess the accepted answer worked for him, but I think people should try this recommended method first.

是的,我看到提问者说他​​已经这样做了,所以我想接受的答案对他有用,但我认为人们应该首先尝试这种推荐的方法。