Eclipse 中的 Java EE 透视图
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7945253/
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
Java EE perspective in eclipse
提问by Ankita_K
I have Standard version of eclipse Galileo. Now I want to develop enterprise applications on it. Any idea how can I get Java EE perspective? How to install Java EE tools in the standard version?
我有 eclipse Galileo 的标准版本。现在我想在上面开发企业应用程序。知道如何获得 Java EE 视角吗?如何在标准版中安装 Java EE 工具?
采纳答案by Ayusman
The standard edition can be upgraded to J2EE edition by installing the different plug-ins like WTP and so on. Did you try to look at the update site for Galileo?
标准版可以通过安装WTP等不同的插件升级到J2EE版。您是否尝试查看伽利略的更新站点?
回答by Teemu Leisti
I had the same problem. I installed the latest Eclipse platform, Indigo, first using the Ubuntu Software Center, and when I didn't see the JavaEE perspective, I though I'd gotten the wrong one. I deleted that and installed the Java EE version downloadable from eclipse.org
-- but still no Java EE perspective available. Then I read the advice above (and elsewhere) about installing the WTP plugins.
我有同样的问题。我安装了最新的 Eclipse 平台 Indigo,首先使用 Ubuntu 软件中心,当我没有看到 JavaEE 透视图时,我以为我弄错了。我删除了它并安装了可从这里下载的 Java EE 版本eclipse.org
——但仍然没有可用的 Java EE 透视图。然后我阅读了上面(和其他地方)关于安装 WTP 插件的建议。
I decided to blow away the previous installation of Eclipse, because I prefer installing everything through the normal package management system. Then, after having installed Eclipse again, through the Ubuntu Software Center (and not seeing the Java EE perspective)... but I'll tell the rest of the story as a set of instructions:
我决定放弃之前安装的 Eclipse,因为我更喜欢通过正常的包管理系统安装所有东西。然后,在再次安装 Eclipse 之后,通过 Ubuntu 软件中心(并且没有看到 Java EE 透视图)……但我将把故事的其余部分作为一组说明来讲述:
- Install Eclipse. In Ubuntu, you can do it at least in these two ways:
- Go to the Ubuntu Software Center, search for eclipse, and install "Extensible Tool Platform and Java IDE"; or
- Give the command
sudo apt-get install eclipse eclipse-cdt eclipse-emf eclipse-emf-examples eclipse-emf-sdk eclipse-jdt eclipse-pde eclipse-platform eclipse-platform-data eclipse-rcp eclipse-rse eclipse-xsd eclipse-xsd-sdk
(those are what I have after doing all these steps; they might not all be necessary, but can't hurt)
- Open Eclipse, and give a directory to use as a workspace.
- Go to "Help" -> "Install New Software...".
- In the new dialog, in the "Work with:" pull-down list, select "Indigo - http://download.eclipse.org/releases/indigoIndigo- http://download.eclipse.org/releases/indigo".
- Click the checkbox to the left of "Web, XML, Java EE and OSGI Enterprise Development".
- Click the "Next >" button. The installation will start.
- The dialog will now list the items to be installed, and ask you to confirm the installation. Click the "Next >" button. The installation will complete.
- Now, back in the main window, in "Window" -> "Perspective", I still could not see "Java EE" -- but it might have been under the "Other" selection; I didn't check, and that's where it can be found now that I've done everything described here.
- Click on "File" -> "New" -> "Dynamic Web Project". The existence of this selection means that you've successfully installed the web development tools.
- Configure the project. After you've pressed "Finish", Eclipse should ask you whether you want to open the Java EE perspective.
- 安装 Eclipse。在 Ubuntu 中,您至少可以通过以下两种方式做到这一点:
- 进入Ubuntu软件中心,搜索eclipse,安装“Extensible Tool Platform and Java IDE”;或者
- 发出命令
sudo apt-get install eclipse eclipse-cdt eclipse-emf eclipse-emf-examples eclipse-emf-sdk eclipse-jdt eclipse-pde eclipse-platform eclipse-platform-data eclipse-rcp eclipse-rse eclipse-xsd eclipse-xsd-sdk
(这些是我完成所有这些步骤后所拥有的;它们可能不是必需的,但不会造成伤害)
- 打开 Eclipse,并提供一个目录用作工作区。
- 转到“帮助”->“安装新软件...”。
- 在新对话框中的“Work with:”下拉列表中,选择“Indigo - http://download.eclipse.org/releases/indigoIndigo- http://download.eclipse.org/releases/indigo”。
- 单击“Web、XML、Java EE 和 OSGI 企业开发”左侧的复选框。
- 单击“下一步>”按钮。安装将开始。
- 该对话框现在将列出要安装的项目,并要求您确认安装。单击“下一步>”按钮。安装将完成。
- 现在,回到主窗口,在“窗口”->“透视”中,我仍然看不到“Java EE”——但它可能在“其他”选项下;我没有检查,现在我已经完成了这里描述的所有事情,这就是可以找到的地方。
- 点击“文件”->“新建”->“动态Web项目”。此选项的存在意味着您已成功安装 Web 开发工具。
- 配置项目。在您按下“Finish”之后,Eclipse 应该会询问您是否要打开 Java EE 透视图。
By the way, some of those Eclipse packages that I give for installing through apt-get might have been installed during the Eclipse software update phase, as I didn't install all of them by myself. The most important ones are eclipse
, eclipse-platform
, eclipse-platform-data
, eclipse-pde
, and eclipse-rcp
. The descriptions of all of them are:
顺便说一下,我通过 apt-get 提供的一些 Eclipse 软件包可能已经在 Eclipse 软件更新阶段安装了,因为我没有自己安装所有这些软件包。其中最重要的是eclipse
,eclipse-platform
,eclipse-platform-data
,eclipse-pde
,和eclipse-rcp
。所有这些的描述是:
eclipse - Extensible Tool Platform and Java IDE
eclipse-cdt - C/C++ Development Tools for Eclipse
eclipse-emf - Eclipse Modeling Framework (EMF)
eclipse-emf-examples - Eclipse EMF/XSD examples
eclipse-emf-sdk - Eclipse Modeling Framework (EMF) - (Source/Documentation)
eclipse-jdt - Eclipse Java Development Tools (JDT)
eclipse-pde - Eclipse Plug-in Development Environment (PDE)
eclipse-platform - Eclipse platform without plug-ins to develop any language
eclipse-platform-data - Eclipse platform without plug-ins to develop any language (data)
eclipse-rcp - Eclipse Rich Client Platform (RCP)
eclipse-rse - Eclipse Remote System Explorer (RSE)
eclipse-xsd - XML Schema Definition (XSD) for Eclipse
eclipse-xsd-sdk -
回答by mishadoff
It's better to download newest version of eclipse "for Java EE Developers". It also includes standard version.
最好下载最新版本的eclipse“for Java EE Developers”。它还包括标准版。