Eclipse 新手,我没有“动态 Web 项目”,我在 Linux Ubuntu 下

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

Newbie in Eclipse, I don't have "dynamic web project" , I am under Linux Ubuntu

eclipseeclipse-plugin

提问by Mellon

I have download the Eclipse IDE for Java developer, HELIOS. I click 'File -> New -> Project...', but I only have "General, CVS, Java project, Examples". I would like to be able to create "dynamic web project", why do I not have this option?

我已经为 Java 开发人员 HELIOS 下载了 Eclipse IDE。我单击“文件 -> 新建 -> 项目...”,但我只有“常规、CVS、Java 项目、示例”。我希望能够创建“动态网络项目”,为什么我没有这个选项?

I searched from internet, and the reason is probably I don't have Eclipse Web Development Tools, but how can I get it?

我从网上搜索,原因可能是我没有 Eclipse Web 开发工具,但我如何获得它?

-----------EDIT-----------

- - - - - -编辑 - - - - - -

I know by install Eclipse IDE for Java EE developer can solve the problem. But, I am working under Linux Ubuntu, how to get Eclipse Java EE version for Ubuntu Linuxmachine?

我知道通过为 Java EE 开发人员安装 Eclipse IDE 可以解决这个问题。但是,我在Linux Ubuntu下工作,如何为Ubuntu Linux机器获取 Eclipse Java EE 版本?

采纳答案by naiquevin

I think you need the Web Tools Platform package for this. Not very sure though. You can add it to your current eclipse through Help > install new software.

我认为您需要为此使用 Web Tools Platform 包。虽然不是很确定。您可以通过“帮助”>“安装新软件”将其添加到您当前的 eclipse 中。

Then add the software repository site location for WTP for your version of eclipse. This is how you can install plugins in eclipse.

然后为您的 eclipse 版本添加 WTP 的软件存储库站点位置。这就是在 eclipse 中安装插件的方法。

回答by Poli

Not all of them are required (I think), but after installing the components listed below I got the "Dynamic Web Project" template added to my Eclipse (Indigo). The list is:

并非所有这些都是必需的(我认为),但是在安装下面列出的组件后,我将“动态 Web 项目”模板添加到了我的 Eclipse (Indigo) 中。名单是:

  • Eclipse Java EE Developer Tools
  • Eclipse Java Web Developer Tools
  • Eclipse Web Developer Tools
  • Eclipse XML Editors and Tools
  • Eclipse Java EE 开发人员工具
  • Eclipse Java Web 开发人员工具
  • Eclipse Web 开发人员工具
  • Eclipse XML 编辑器和工具

You can install those packages by clicking on "Help" > "Install New Software", selecting the repository that corresponds to your Eclipse build (i.e http://download.eclipse.org/releases/indigofor Indigo). The packages are grouped under "Web, XML, Java EE and OSGi Enterprise Development".

您可以通过单击“帮助”>“安装新软件”,选择与您的 Eclipse 构建对应的存储库(即http://download.eclipse.org/releases/indigofor Indigo)来安装这些软件包。这些包在“Web、XML、Java EE 和 OSGi 企业开发”下分组。

回答by user3636934

"http://download.eclipse.org/releases/kepler"(If you have Eclipse Kepler)

http://download.eclipse.org/releases/kepler”(如果你有 Eclipse Kepler)

Based on your eclipse choose above link and copy in

根据您的日食选择上面的链接并复制

  1. help>Install new software

  2. paste in "work with" click add

  3. give any name you want - plugin

  4. In the list select>"Web, XML, Java EE and OSGi Enterprise Development">Eclipse Java EE

    Developer Tools. select and install it.

  5. After restart you will have your Dyanmic web project option.

  1. 帮助>安装新软件

  2. 粘贴在“使用”中单击添加

  3. 给任何你想要的名字 - 插件

  4. 在列表中选择>"Web, XML, Java EE and OSGi Enterprise Development">Eclipse Java EE

    开发者工具。选择并安装它。

  5. 重新启动后,您将拥有 Dyanmic Web 项目选项。

Thank You.

谢谢你。

Like me if it worked please

像我一样,如果它有效,请

回答by Abdelhameed Mahmoud

You only need to install

你只需要安装

Eclipse Java EE Developer Tools

Eclipse Java EE 开发人员工具

and you will be able to see "Dynamic web project" wizard.

您将能够看到“动态 Web 项目”向导。

回答by darioo

Download Eclipse IDE for Java EE Developers, everything you need should be included inside. This is the most painless way of obtaining Web Development Tools.

下载Eclipse IDE for Java EE Developers,你需要的一切都应该包含在里面。这是获取 Web 开发工具的最轻松的方式。

If you want to leave your existing Eclipse IDE, you can go to 'Help -> Install New Software' and find WDT to install them, although I haven't personally tried to go this route, so I can't guarantee everything will work out of the box.

如果你想离开你现有的 Eclipse IDE,你可以去'帮助 -> 安装新软件'并找到 WDT 来安装它们,虽然我没有亲自尝试过这条路,所以我不能保证一切都会正常盒子外面。

Edit: not sure if it's included in Ubuntu's repository. One other way to do it is to download Linux 32-bit (or 64-bit, depending on your machine) version of Eclipse EE, but you'll have to check if it's the source you have to compile yourself, or an already compiled binary.

编辑:不确定它是否包含在 Ubuntu 的存储库中。另一种方法是下载 Eclipse EE 的 Linux 32 位(或 64 位,取决于您的机器)版本,但您必须检查它是您必须自己编译的源,还是已经编译的源二进制。

回答by ruffin

Fwiw, I downloaded the standard Java EE version of the Mars version of Eclipse, and ran into the same deal -- didn't see a Web option if I tried File >>> New >>> Project wizard.

Fwiw,我下载了 Eclipse 的 Mars 版本的标准 Java EE 版本,并遇到了同样的问题——如果我尝试文件 >>> 新建 >>> 项目向导,则没有看到 Web 选项。

The good news: Probably no extra installation needed.

好消息:可能不需要额外的安装。

It looks like what I wanted was to select the Otheroption rather than the Projectitem (strangely this is what comes up when you hit Ctrl-N, but that also lets us know we're probably on the right track):

看起来我想要的是选择Other选项而不是Project项目(奇怪的是,当您按 Ctrl-N 时会出现这种情况,但这也让我们知道我们可能走在正确的轨道上):

Screenshot of the new project menu hierarchy with "Other" highlighted.

突出显示“其他”的新项目菜单层次结构的屏幕截图。

After you select "Other", you'll see the "Select a wizard" screen, where you can select "Dynamic Web Project" and profit.

选择“其他”后,您将看到“选择向导”屏幕,您可以在其中选择“动态 Web 项目”并获利。

Dynamic Web Project highlighted in Select a wizard screen.

选择向导屏幕中突出显示的动态 Web 项目。

回答by Harman Gill

  1. HELP
  2. Install New Software
  3. In Work With input box paste this url: http://download.eclipse.org/releases/{version}/ Replace version with your eclipse's version (eg: LUNA)
  4. Hit enter
  5. Underneath box will have different options, select package of your need.
  1. 帮助
  2. 安装新软件
  3. 在 Work With 输入框中粘贴此 URL:http: //download.eclipse.org/releases/{version}/ 用您的 eclipse 版本替换 version(例如:LUNA)
  4. 按回车
  5. 下面的框会有不同的选项,选择你需要的包。

回答by Shell Scott

Just download any eclipse with "EE" letters

只需下载带有“EE”字母的任何日食

回答by Amitesh Ranjan

Maybe Eclipse WTP plugin has been accidently removed. Have you tried re-installing WTP using this location? If I were you I would have reinstall Eclipse from strach or even better try Spring ToolSuitewhich integrates with Google Plugin for Eclipse seamlessly (usign Extenstions tab on STS Dashboard)

也许 Eclipse WTP 插件被意外删除了。您是否尝试过使用此位置重新安装 WTP ?如果我是你,我会从strach重新安装 Eclipse,或者甚至更好地尝试与 Google Plugin for Eclipse 无缝集成的Spring ToolSuite(使用 STS 仪表板上的扩展选项卡)

回答by Sankar

Go to Eclipse --> Help

转到 Eclipse --> 帮助

and click--->Install new software

然后点击--->安装新软件

then you can see a window ...There a click add

然后你可以看到一个窗口......有一个点击添加

Then put below url in url box: http://download.eclipse.org/webtools/repository/juno/

然后把下面的网址放在网址框中:http: //download.eclipse.org/webtools/repository/juno/

i am having juno

我有朱诺

if u have any other means put that name . then click ok.

如果您有任何其他方式,请输入该名称。然后点击确定。