Today I installed Java EE by downloading the .sh
file from the official Oracle source and running it using the sudo sh filename.sh
command.
However, I have several versions of Java in my Linux Mint machine, which I access when using the command sudo update-alternatives --config java
:
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-7-oracle/jre/bin/java 1074 auto mode
1 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
* 2 /usr/lib/jvm/java-7-oracle/jre/bin/java 1074 manual mode
Press enter to keep the current choice[*], or type selection number:
And when I use the java -version
command, this is what I get:
$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
By reading all these outputs, I never find anything mentioning any "Java EE" version. So I have some questions I need clarification with:
Thanks in advance, Pedro.
Java EE is not a replacement for Java SE, it's a set of APIs and services on top of Java SE. Or in Oracle's own words:
The Java EE platform is built on top of the Java SE platform. The Java EE platform p rovides an API and runtime environment for developing and running large-scale, multi-tiered, scalable, reliable, and secure network applications.
What you downloaded here is an Oracle Glassfish server (the reference implementation of Java EE - its own site can be found here ) with a bundled JDK (which you won't need because you already had Java SE installed). Doesn't look that fresh to me with its bundled jdk7u10...
Java EE is quite comprehensive and big, the official tutorial is a very impressive book with 1010 pages.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.