安装JDK 1.7和Java EE 7 SDK后会出现混淆? [英] Confusion after installation of JDK 1.7 and Java EE 7 SDK?
问题描述
我刚开始使用Oracle Java EE 7教程。虽然我已经在现有的Apache Tomcat环境中获得了一些练习,但我希望与完整的教程联系,以获得清晰的学习路径和路径。
I am just starting with the Oracle Java EE 7 tutorial. While I have already gained some practice with an existing Apache Tomcat Environment I wanted to get in touch with the complete tutorial to have a clear learning path and trail.
所以我是目前正在使用Mac OS X Mavericks。我已经安装了一个非常流畅的Oracle JDK 1.7。开发也很好,所以没有问题。
So I am currently using a Mac with OS X Mavericks. I have already installed an Oracle JDK 1.7 which is working pretty smooth. Developing is also nice so no problems with that.
现在我来到这个部分是为了下载Java EE 7 SDK / JDK( http://docs.oracle.com/javaee/7/tutorial/doc/usingexamples001.htm #GEXAJ )
Now I came to the part in order to download "Java EE 7 SDK/JDK" (http://docs.oracle.com/javaee/7/tutorial/doc/usingexamples001.htm#GEXAJ)
我已经这样做并运行安装程序。我可以看到它做的是安装一个glassfish4环境(这似乎很好,因为教程涵盖了glassfish,我会在教程中使用它)。我还运行了更新工具来获取java-ee-7-tutorial-examples。
I have done so and run the installer. What I can see it does is installing a glassfish4 environment (which seems to be fine as the tutorial covers glassfish and I would use it in tutorial). I also ran the Update Tool to get the java-ee-7-tutorial-examples.
无论如何将glassfish服务器添加到我在Java选项卡中提到的netbeans 8只有JDK 1.7指向我1.7系统上的Java JDK位置。
试图找到任何特定的EE 7位置似乎没有什么是正确的位置( find / -name java
)
Anyhow adding the glassfish server to netbeans 8 I mentioned in the "Java" Tab there is just JDK 1.7 which points to me 1.7 Java JDK location on the system.
Trying to find any specific EE 7 location nothing seems to be the right location (find / -name java
)
那么除了安装glassfish环境之外,这个安装究竟是做什么的呢?
使用EE 7 SDK / JDK的用例是什么?也许我有点困惑,但我想让自己明白这些事情以便理解它。
So what exactly does this installation do in other words than just installing glassfish environment? And what is the use case of having the EE 7 SDK/JDK ? Maybe I am a bit confused but I want to have these things clear for myself in order to understand it.
推荐答案
GlassFish Server开源版4 是 Java EE 7规范。因此,您永远不能像下载JDK一样下载Java EE本身,但是您总是下载实现它的应用程序服务器。
GlassFish Server Open Source Edition 4 is the reference implementation of the Java EE 7 specification. So you can never download Java EE itself like you do with Java SE by downloading the JDK, but you always download an application server implementing it.
目前,您已 JBoss WildFly 8 作为替代方案,但通常需要花费一些时间,尤其是像Oracle WebLogic这样的商业应用服务器。
At the moment, you have JBoss WildFly 8 as alternative, but it usually takes some time after more, especially commercial application servers like Oracle's WebLogic follow.
因此,关于IDE,您可以将JDK添加为运行时其他java项目和GlassFish作为部署的服务器和目标。
So concerning your IDE, you add the JDK as runtime as in every other java project and GlassFish as a server and target for your deployment.
提示:如果您在尝试通过updatetool获取样本时遇到问题(至少当我执行 Java EE 7教程时就是这种情况,再试一次 - 有时候java.net非常慢。
Hint: In case you experience problems when trying to get the samples via updatetool (at least it was the case when I did the Java EE 7 tutorial), just try again - java.net is so awfully slow sometimes.
这篇关于安装JDK 1.7和Java EE 7 SDK后会出现混淆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!