Java SE or Java EE (standard or enterprise)?

前端 未结 2 1800
感动是毒
感动是毒 2021-01-20 07:27

I\'m starting to do a lot of Java EE dev work. Is it ok to install Java EE on my home machine instead of a JRE?

Also, can GlassFish run on a JRE or does it need Java

相关标签:
2条回答
  • 2021-01-20 07:44

    You still need a JRE (Java Runtime Environment). Actually, you really need a JDK (Java Development Kit) so you can compile.

    GlashFish includes the Java EE libraries. It runs on a JRE or JDK. If you are using JSPs, you have to run GlassFish against a JDK (because JSP technology does code generation/compilation at run-time.

    0 讨论(0)
  • 2021-01-20 07:49

    Java EE is an abstract API. GlassFish is one of the available concrete Java EE implementations. The Java EE download from Oracle.com is basically just GlassFish along with some documentation/examples and optionally also NetBeans. So if you download Java EE from Oracle.com, you've already GlassFish :)

    It only requires a Java SE JDK (not just JRE!) already on your machine which has to be downloaded and installed separately. If you intend to develop with JSF, you may find this tutorial useful as well. It covers installing JDK, GlassFish and Eclipse from the zero beginning in detail.

    See also:

    • https://stackoverflow.com/questions/165230/is-the-offical-sun-java-ee-tutorial-the-best-way-to-learn-how-to-make-java-web-ap
    0 讨论(0)
提交回复
热议问题