Java Platform, Enterprise Edition 7 SDK - Installation Instructions

 

These installation instructions describe how to install Java Platform, Enterprise Edition 7 SDK and Java Platform, Enterprise Edition 7 Web Profile SDK. 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 7 (Java EE 7) SDK

    • GlassFish Server Open Source Edition 4.0
    • Your First Cup: An Introduction to the Java EE Platform
    • Java EE 7 Tutorial
    • Java EE 7 Samples
    • Java EE 7 API Documentation
       
  • Java Platform, Enterprise Edition 7 (Java EE 7) Web Profile SDK

    • GlassFish Server Open Source Edition 4.0 Web Profile
    • Your First Cup: An Introduction to the Java EE Platform
    • Java EE 7 Tutorial
    • Java EE 7 Samples
    • Java EE 7 API Documentation

Visit the Java EE 7 SDK Downloads page for more information about each distribution.

Preconfigured Repositories

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/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 7 SDK Release Notes. Ensure that your system meets these requirements.

Java EE 7 SDK distributions require 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.

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 4.0 Installation Guide for detailed instructions.

  1. Download the distribution file for your platform from the Java EE 7 SDK Downloads page. The self-extracting file provides a graphical installation wizard.
     
  2. Navigate to the directory where you downloaded the file.
     
  3. Start the installation program:

    • Solaris, Linux, and Mac OS X systems:
      1. If necessary, grant execute permissions to the distribution file: chmod +x ./ distribution-filename
      2. At the command prompt, type: sh ./ distribution-filename
         
    • Windows systems: Double-click the executable .exe installation file.
       
  4. At the Introduction page of the installation wizard, click Next. Use the Next button to move through the installation process.
     
  5. 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 the "To Perform a Custom Installation" in the GlassFish Server Open Source Edition 4.0 Installation Guide.
     
  6. Specify the installation directory. This directory is referred to as install-dir and will be created if it does not exist.
     
  7. 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.
       
  8. 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.
     
  9. Review the Summary page. The page provides installation information and a link to the GlassFish Server Open Source Edition 4.0 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 in the Java EE 7 SDK and Java EE 7 Web Profile SDK 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.0 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 installed with GlassFish Server and can be accessed from the GlassFish Server Administration Console or from the command line.

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 4.0 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

  1. Navigate to the installation directory.
     
  2. Start the uninstallation program:

    • Solaris, Linux, and Mac OS X systems:
       
      1. If necessary, grant execute permissions to the uninstall file: chmod +x uninstall.sh
      2. 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.
       
  3. 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.
     
  4. 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.
Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve

Java 8 banner (182)

Virtual Technology Summit 07.09.14 Banner

Java One 2014 RHS Banner

Duke's Choice RHS Banner