Installation

Previous Next Contents

4 Installation

This chapter explains how to install the Java EE 8 CTS software and perform a sample test run to verify your installation and familiarize yourself with the CTS.

After installing the software according to the instructions in this chapter, proceed to Chapter 5, "Setup and Configuration," for instructions on configuring your test environment.

This chapter covers the following topics:

4.1 Installing the Java EE 8 Reference Implementation

Before You Begin

If the Java EE 8 Reference Implementation (RI) is already installed, it is recommended that you shut it down and start with a new, clean RI installation.

  1. Install the Java SE 8 JDK bundle, if it is not already installed.
    Refer to the JDK installation instructions for details. The JDK bundle can be downloaded from http://www.oracle.com/technetwork/java/javase/downloads/index.html

  2. Create or change to the directory in which you will install the Java EE 8 RI.

  3. Copy or download the Java EE 8 RI.

  4. Unzip the Java EE 8 RI bundle.

  5. Set the following environment variables:

    • JAVAEE_HOME to the RI directory you just created

    • JAVA_HOME to the JDK you want to use

  6. Start the Java EE 8 RI by executing the following command:

<JAVAEE_HOME>/bin/asadmin start-domain

4.2 Installing the Java EE 8 CTS

Complete the following procedure to install the Java EE 8 CTS on a system running the Solaris, Linux, or Windows operating system.

Note

When installing in the Windows environment, the Java EE 8 RI, Java SE 8 JDK, and CTS should be installed on the same drive. If you must install these components on different drives, be sure to change the ri.applicationRoot and s1as.applicationRoot properties as needed in the <TS_HOME>/bin/ts.jte CTS configuration file. See Section 5.4.2, "Windows-Specific Properties," for more information.

  1. Copy or download the CTS 8 software.

  2. Change to the directory in which you want to install the Java EE 8 CTS software and use the unzip command to extract the bundle:

cd install_directory
unzip javaeetck-nnn.zip

This creates the javaeetck directory. The install_directory`/javaeetck` directory will be TS_HOME. 3. Set the TS_HOME environment variable to point to the javaeetck directory.

After you complete the installation, follow the directions in Chapter 5, "Setup and Configuration," to set up and configure the Java EE 8 CTS test suite.

4.3 Verifying Your Installation (Optional)

This procedure is optional. After installing the Java EE 8 RI and Java EE 8 CTS, you may want to verify your installation by running the CTS samples against the Java EE 8 RI. See Chapter 5, "Setup and Configuration," for complete configuration instructions.

  1. Set the following properties in your <TS_HOME>/bin/ts.jte file:

javaee.home=<JAVAEE_HOME>
javaee.home.ri=<JAVAEE_HOME>
mailHost=<mail-server-host> // the name of an accessible SMTP server
mailuser1=firstname.lastname@xyz.com // a valid email address
javamail.password=password // password for mailuser1
orb.host=localhost // the name of the machine running the Java EE 8 RI
orb.host.ri=localhost // the name of the machine running the Java EE 8 RI
  1. Use these commands to run the Java EE 8 CTS sample tests:

cd <TS_HOME>/bin
ant start.javadb.asadmin
ant config.vi
cd <TS_HOME>/src/com/sun/ts/tests/samples
ant runclient

Previous Next Contents
Eclipse Foundation Logo  Copyright © 2018, Oracle and/or its affiliates. All rights reserved.