简体   繁体   English

将Java SE升级到Java EE以及Eclipse

[英]Upgrade Java SE to Java EE as well as Eclipse

Currently I have Java SE on my linux machine and use Eclipse as my IDE. 目前我的linux机器上有Java SE,并使用Eclipse作为我的IDE。 Is there a way that I can 'upgrade' my Java SE to EE? 有没有办法可以将我的Java SE“升级”为EE? Since EE is just basically a few extra libraries... 由于EE基本上只是一些额外的库......

Also I understand that Eclipse is by default only 'configured' to use Java SE, so if I upgrade to EE, should I install some extra plugins for Eclipse, get an entirely different version of Eclipse, so on? 另外我理解Eclipse默认只是“配置”使用Java SE,所以如果我升级到EE,我应该为Eclipse安装一些额外的插件,获得完全不同的Eclipse版本,依此类推?

Thanks in advance! 提前致谢!

Is there a way that I can 'upgrade' my Java SE to EE? 有没有办法可以将我的Java SE“升级”为EE? Since EE is just basically a few extra libraries... 由于EE基本上只是一些额外的库......

Basically no. 基本上没有。 Your characterisation of Java EE is incorrect. 您对Java EE的描述不正确。

Java EE is (typically) embodied as a "Web container" or "EJB application server", and large parts of it only make sense as part of a web container. Java EE(通常)体现为“Web容器”或“EJB应用程序服务器”,并且它的大部分仅作为Web容器的一部分有意义。 (And indeed, a large part of an Java EE implementation is actually specific to the web / application container.) (实际上,Java EE 实现的很大一部分实际上特定于Web /应用程序容器。)

Having said that, some of the (abstract) APIs and some of the libraries are available as separate JARs and can be installed on a piece-meal basis. 话虽如此,一些(抽象)API和一些库可以作为单独的JAR使用,并且可以在零食的基础上安装。 And if what you want to do is develop for EE , then there are Eclipse plugins/features/whatever for that ... 如果您想要为EE开发 ,那么有Eclipse插件/功能/无论如何......


So basically it's recommended (or safer) to just remove my Java SE, install Java EE. 因此,基本上建议(或更安全)删除我的Java SE,安装Java EE。 Then remove Eclipse and install 'Eclipse for EE development' ? 然后删除Eclipse并安装'Eclipse for EE development'?

There's no need to uninstall Java SE. 无需卸载Java SE。 Indeed, some Java EE implementations require an installation of Java SE. 实际上,一些Java EE实现需要安装Java SE。 Read the instructions ... 阅读说明书 ...

For Eclipse, it might depend on your OS, but on Linux the "installation" process is simply expanding a ZIP file. 对于Eclipse,它可能取决于您的操作系统,但在Linux上,“安装”过程只是扩展ZIP文件。 I've found that two Eclipse installations can coexist side by side in separate directories. 我发现两个Eclipse安装可以在不同的目录中并存。

However ... 但是......

  • Be careful that you don't accidentally install one version / edition on top of another one. 请注意,不要另一个版本/版本之上意外安装一个版本/版本。 IIRC, the ZIP file's root directory is always "eclipse" ... which makes it a cinch to shoot yourself in the foot! IIRC,ZIP文件的根目录总是“eclipse”......这使得它很难在脚下射击! (Sigh). (叹)。

  • It is prudent to make a backup copy of everything including your old Eclipse install and your workspaces. 谨慎制作包括旧Eclipse安装和工作区在内的所有内容的备份副本。

  • In fact, some people recommend throwing away all of your workspaces and starting afresh by checking out / materializing projects from version control. 实际上,有些人建议丢弃所有工作区并重新启动,方法是从版本控制中检出/实现项目。

You need Web Tools Platform (WTP) added to Eclipse installation for Java EE development. 您需要将Web Tools Platform(WTP)添加到Eclipse安装以进行Java EE开发。 First go to eclipse help menu->install new software->add the site 首先去eclipse帮助菜单 - >安装新软件 - >添加网站
You can find the update sites here 您可以在此处找到更新站点

http://wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F http://wiki.eclipse.org/WTP_FAQ#How_do_I_install_WTP.3F

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM