Java Platform, Enterprise Edition 6 SDK Update 4- Installation Instructions
These installation instructions describe how to install Java Platform, Enterprise Edition 6 SDK Update 4 and Java Platform, Enterprise Edition 6 Web Profile SDK Update 4. The following topics are discussed:
Solaris, Linux, and
Mac OS X installations support root/superuser and non-root/standard user installations. For Windows installations, users should have Power User or Administrator access.
Distributions and Their Components
The following distributions are available
and include the components listed:
- Java Platform, Enterprise Edition 6 (Java EE 6) SDK Update 4
- GlassFish Server Open Source Edition 3.1.2
- Your First Cup: An Introduction to the Java EE Platform
- Java EE 6 Samples
- Java EE 6 API Documentation
- Java EE 6 Tutorial
- Java Platform, Enterprise Edition 6 (Java EE 6) Web Profile SDK Update 4
- GlassFish Server Open Source Edition 3.1.2 Web Profile
- Your First Cup: An Introduction to the Java EE Platform
- Java EE 6 Samples
- Java EE 6 API Documentation
- Java EE 6 Tutorial
Visit the
Java EE 6 SDK Downloads page for more information about each distribution.
Preconfigured Repositories
The functionality offered by The Java EE 6 SDK
Update 4 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 |
|
pkg.oracle.com/javaeesdk/6/release/
|
This is the preferred repository.
This repository will host all FCS Java EE SDK packages. |
release.javaeesdk.oracle.com
|
|
pkg.oracle.com/glassfish/v3/contrib/
|
This repository hosts all non-open source partner-contributed packages. |
contrib.glassfish.oracle.com
|
|
pkg.glassfish.org/v3/contrib/
|
This repository hosts open source
third party-contributed packages (from partners, etc.). |
contrib.glassfish.org
|
|
|
The first of these,
pkg.oracle.com/javaeesdk/6/release/, has its publisher designated as the preferred publisher, and so is treated specially by the IPS tools:
-
If an add-on component is available from the preferred publisher as well as from other publishers, the Update Tool GUI and the
pkg CLI will list and install the component from the preferred publisher.
-
Once a component has been installed from the preferred publisher, the Update Tool, Software Update, and desktop notifier GUIs will look for updates to that component only from the preferred publisher.
Installing the Software
Requirements
For a summary of supported platforms and the hardware
and software requirements for this release, see the
Java EE 6 SDK Update 4 Release Notes. Ensure that your system meets these requirements.
Java EE 6 SDK Update 4 distributions require
JDK 6 or
JDK 7.
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.
For Mac OS X systems, the SDK uses the JDK that is part of the Macintosh operating system. However, OS X Lion does not provide a Java runtime by default. If necessary, obtain the required JDK version from the
Apple Support Downloads site. (Search for the term "Java SE".)
To Install the Software
The following procedure describes how to perform a Typical installation of the SDK distributions using the GUI-based installation wizard. To perform a Custom installation or to install using the non-interactive silent mode, see the
GlassFish Server Open Source Edition 3.1.2 Installation Guide for detailed instructions.
- Download the distribution file for your platform from the
Java EE 6 SDK Downloads page. The self-extracting file provides a graphical installation wizard.
- Navigate to the directory where you downloaded the file.
- Start the installation program:
- Solaris, Linux, and Mac OS X systems:
- If necessary, grant execute permissions to the distribution file:
chmod +x
./
distribution-filename
- At the command prompt, type:
sh ./
distribution-filename
- Windows systems: Double-click the executable
.exe installation file.
- At the Introduction page of the installation wizard, click Next. Use the Next button to move through the installation process.
- Choose the Installation type.
Choose a Typical Installation
for application development purposes or non-production use only. Choose a Custom Installation
if you are deploying GlassFish Server in a production environment.
The remainder of this procedure describes the steps in the Typical Installation path.
If you are performing a Custom Installation, skip the remainder of this procedure and follow
the procedure explained in th "To Perform a Custom Installation" in the
GlassFish Server Open Source Edition 3.1.2 Installation Guide.
- Specify the installation directory. This directory is referred to as
install-dir and will be created if it does not exist.
- Specify whether to install Update Tool, an administrative tool that enables you to install updates and add-on components for GlassFish Server.
- If you are not installing Update Tool, deselect the Install Update Tool check box.
Update Tool can be installed later using the
install-dir
/bin/updatetool
command.
- If you are installing Update Tool and your system accesses the Internet through a proxy, specify the proxy host and proxy port.
- If you want to install Update Tool but do not require the automatic notifications of available updates after installation, deselect the Enable Update Tool check box.
- Review the Ready To Install selections and click Install to proceed with the installation.
The domain that was created by installation program is automatically started by the
installer after the installation process completes.
- Review the Summary page. The page provides installation information and a link to the
GlassFish Server Open Source Edition 3.1.2 Quick Start Guide.
Make note of this information as desired, then click Exit.
The names of the installation log and summary files are
timestamp-
install.log and
timestamp-
install-summary.html. On Solaris, Linux, and Mac OS X systems, these files are generated in the
$TMP directory. On Windows systems, these files are generated in the
%TEMP% directory.
Next Steps and Resources
The following resources will help you get
started with GlassFish Server Open Source
Edition and make the most of its capabilities.
- Quick Start Guide. The
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.
- Release Notes. The GlassFish Server Open Source Edition 3.1.2
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. Detailed information about GlassFish Server Open Source Edition 3.1.2 is available in a
ZIP file that includes all of the product documentation.
- Update Tool. Update Tool enables you to install and update additional technologies and frameworks. Update Tool is installed with GlassFish Server and is accessed from the GlassFish Server Administration Console or from the command line.
- Your First Cup: An Introduction to the Java EE Platform
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.
- Java EE 6 Samples.
Java EE 6 samples demonstrate Java EE 6 technologies and help you learn more about them. After installation, samples are located in
install-dir
/glassfish
/samples/javaee6. See the
index.html file in that location for more information about the samples.
- Java EE 6 API Documentation.
Java EE 6 API documentation provides API reference documentation for GlassFish Server packages and related APIs. This documentation is generated from the source code by the Javadoc tool and after installation is accessed from
install-dir
/glassfish
/docs
/api
/index.html.
- The Java EE 6 Tutorial.
The Java EE 6 Tutorial
is a guide to developing enterprise applications for GlassFish Server. The tutorial includes working examples and instructions for creating applications with Java EE 6 technologies, including Java Servlets, JavaServer Faces, Facelets, RESTful Web Services, Enterprise JavaBeans, Java Persistence API, Contexts and Dependency Injection for the Java EE Platform, and more. The tutorial is also available through Update Tool.
Uninstalling the Software
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 3.1.2
Reference Manual in the
product documentation ZIP file.
To stop the Update Tool notifier process, use the
updatetool --notifier --shutdown
command, executed from
install-dir
/bin
. If Update Tool is installed, the notifier is running by default.
If orphaned processes remain, identify and terminate the processes as follows:
- Solaris, Linux, and
Mac OS X systems:
Use the
ps -ef command and terminate the processes using the
kill command.
- Windows systems: Use the Task Manager and terminate the processes using the End Task or End Process buttons.
To Uninstall the Software
- Navigate to the installation directory.
- Start the uninstallation program:
- Solaris, Linux,
and
Mac OS X
systems:
-
- If necessary, grant execute permissions to the uninstall file:
chmod +x uninstall.sh
- At the command prompt, type:
./uninstall.sh
- Windows systems: From the Start menu, select Start, then Programs, then GlassFish Server Open Source Edition, then Uninstall.
- Review the Summary page that displays following uninstallation. The page provides summary details and log information. Make note of this information as desired, then click Exit.
The names of the uninstallation log and summary files are
timestamp-
remove.log and
timestamp-
remove-summary.html. On
Solaris, Linux, and Mac OS X systems, these files are generated in the
$TMP directory. On Windows systems, these files are generated in the
%TEMP% directory.
- The installation directory is not automatically removed by the uninstallation program. Examine the installation directory contents and remove any remaining files or directories that you do not want, including hidden directories prefixed with a dot ( . ) , for example
.
directory. It is safe to remove uninstallation and installation log files after you have examined them.