These installation instructions describe how to install Java Platform, Enterprise Edition 7 SDK Update 2 and Java Platform, Enterprise Edition 7 Web Profile SDK Update 2. The following topics are discussed:
The following distributions are available and include the components listed:
Visit the Java EE 7 SDK Downloads page for more information about each distribution.
The functionality offered by The Java EE 7 SDK is organized into OSGi modules, or bundles, that are available as components through the image packaging system (IPS). When you install the SDK, it is preconfigured to use several IPS repositories that together house the OSGi modules available in the SDK. These preconfigured repositories are:
Repository URL | Description | Authority |
---|---|---|
http://pkg.oracle.com/javaeesdk/7/release/code> |
This is the preferred repository. This repository hosts all FCS Java EE SDK packages. | release.javaeesdk.oracle.com |
http://pkg.oracle.com/javaeesdk/7/native/release/ |
This repository hosts platform-neutral FCS Java EE SDK packages that are shared by all platforms. Platform-specific packages reside in their own repositories, one for each platform. | release.native.javaeesdk.oracle.com |
The first of these, pkg.oracle.com/javaeesdk/7/release/
, has its publisher designated as the preferred publisher, and so is treated specially by the IPS tools:
pkg
CLI will list and install the component from the preferred publisher.
Requirements
Java EE 7 SDK distributions require JDK 7 Update 65 and above or JDK 8 Update 20 and above. Oracle generally recommends using the latest JDK that is available.
Ensure that the required JDK software is installed on your system and that the JAVA_HOME
environment variable points to the JDK installation directory, not the Java Runtime Environment (JRE) software.
To Install the Software
The following procedure describes how to install the SDK distributions using the ZIP file.
unzip
zip-file-nameThe Java EE 7 SDK Update 2 or Java EE 7 Web Profile SDK Update 2 is extracted into a new glassfish4
directory under your current directory.
The following resources in the Java EE 7 SDK Update 2 and Java EE 7 Web Profile SDK Update 2 will help you get started with Java EE 7.
Your First Cup: An Introduction to the Java EE Platform provides a short tutorial for beginning Java EE programmers that shows how to develop a simple enterprise application from scratch. The sample application consists of four main components: a JAX-RS RESTful web service, an enterprise bean, a Java Persistence API entity, and a web application created with JavaServer Faces Facelets technology.
The Java EE 7 Tutorial is a guide to developing enterprise applications for GlassFish Server. The tutorial includes working examples and instructions for creating applications with new and updated Java EE 7 technologies, including Java API for WebSocket, Java API for JSON Processing, Batch Applications for the Java Platform, Concurrency Utilities for Java EE, Java Message Service, Java Servlets, JavaServer Faces, RESTful Web Services, Enterprise JavaBeans, Java Persistence API, Contexts and Dependency Injection for Java EE, and more. The tutorial is also available through Update Tool.
Java EE 7 Samples demonstrate Java EE 7 technologies and help you learn more about them. After installation, Samples are located in the install-dir/glassfish/samples/javaee7
directory. See the index.html
file in that location for more information about the samples.
Java EE 7 API Documentation provides API reference documentation for the packages and related APIs that make up the Java EE 7 platform. This documentation is generated from the source code by the Javadoc tool. After installation, the bundled API documentation can be accessed from install-dir/glassfish/docs/api/index.html
.
The following resources will help you get started with GlassFish Server Open Source Edition and make the most of its capabilities.
Quick Start Guide helps you become familiar with GlassFish Server Open Source Edition and explains how to perform basic tasks such as starting the server, accessing the Administration Console, and deploying a sample application. The guide pertains to both GlassFish Server Open Source Edition and GlassFish Server Open Source Edition Web Profile.
GlassFish Server Open Source Edition 4.1 Release Notes provide the latest information about GlassFish Server Open Source Edition, including what's new, known issues, and pointers to additional resources.
Product Documentation provides detailed information about GlassFish Server Open Source Edition 4.0 in a ZIP file that includes all of the product documentation in PDF format.
Update Tool enables you to install and update additional technologies and frameworks. Update Tool is included with GlassFish Server and can be activated and installed from the commandline by entering the updatetool
command and following the prompts.
Before you uninstall the software, make sure you have stopped all domains and other related processes, including command prompts using the installation directory or its subdirectories, the Update Tool notifier process if present, and any applications using Java SE files.
To stop domains, use the asadmin stop-domain
command. For more information about this command, see the GlassFish Server Open Source Edition 4.0 Reference Manual in the product documentation ZIP file.
If orphaned processes remain, identify and terminate the processes as follows:
Use the ps -ef
command and terminate the processes using the kill
command.
Use the Task Manager and terminate the processes using the End Task or End Process buttons.
To Uninstall the Software
Delete the installation directory.