Using the Java CAPS 6 Installation CLI

ProcedureTo Install Java CAPS Components Using the Command Line Console

Before You Begin
  1. Download the installation executable file from the delivery media to the installation directory.

    You can download the file from the following media:

    • The Sun Download Center (SDLC) URL supplied by Sun Support

    • The DVDs that come with the Java Composite Application Platform Suite Media Kit

  2. Extract the installation executable file to a temporary directory.

    • UNIX and Linux: JavaCAPS.bin

    • Windows: JavaCAPS.exe


    Caution – Caution –

    On UNIX systems, the Java CAPS Installer uses /tmp as its workspace by default even when /var/tmp is the system temporary directory, as is the case on Solaris SPARC systems. If you do not have access to /tmp, set the environment variable IATEMPDIR=/var/tmp. The Java CAPS Installer will then use /var/tmp as its temporary directory.


  3. From a command line, navigate to the location of the executable file and run one of the following commands:

    UNIX and Linux: JavaCAPS.bin -i console

    Windows: JavaCAPS.exe -i console

    The text-based Console appears. This might take several minutes.

  4. Read the introduction to the installation, and press Enter to begin the installation.

  5. Read each section of the License Agreement, pressing Enter after each segment. Type Y to accept the terms.

  6. When asked to choose an installation directory, type an absolute path or press Enter to accept the default value that appears on the screen.

    • If a directory by the name you specified already exists, type I to confirm your selection.

    • If the directory by the name you specified already exists and you want to use another directory, type 2.

  7. Choose an installation set.

    • To install all of the Java CAPS components, type 1.

    • To select the components you want to install, type 2, and then enter a comma-separated list of numbers representing the components you do NOT want to install.

      The numbers corresponding to each components are listed on the Console.

  8. When asked to choose a Java Developer Kit (JDK), provide an absolute path to the JDK or press Enter to accept the default value that is listed at the prompt.

  9. Set up the Repository.

    1. Press Enter to accept the default name for the Repository (repository1), or provide a custom value and press Enter.

    2. Press Enter to accept the default port number for the Repository (12000), or provide a custom value and press Enter.

  10. For NetBeans IDE Input, press Enter to accept the default value (to install Repository NBMs), or type 2 and press Enter (Repository NBMs will not be installed).

    If you do not install the Repository NBMS, you will need to manually install them later if you want to use them.

  11. Specify the settings for the GlassFish server.


    Tip –

    Record your selections in this section for later use. To start the GlassFish server you need the administrator user name, password, and master password during the log in process.


    Setting 

    Description 

    Default 

    Admin user name 

    The name you use when you log in as administrator. 

    admin

    Admin password 

    The password you use when you log in as administrator. This password must be a minimum of eight characters. 

    adminadmin

    Master password for the SSL certificate for AS Admin operations 

    The key used to protect data in GlassFish, that is, the password of the secure keystore. This key must be at least 8 characters long. 

    changeit

    Admin port number 

    The port on which GlassFish listens for administrative HTTP requests. 

    4848

    HTTP port number 

    The port on which GlassFish listens for HTTP requests for web applications that you deploy. 

    8080

    Secure HTTPS port number 

    The port on which GlassFish listens for HTTPS requests for web applications that you deploy. 

    8181

    JMS port number 

    The port on which GlassFish listens for JMS IQ Manager requests. 

    7676

    JMX admin port number 

    The port on which GlassFish listens for JMX administration requests. 

    8686

    IIOP port number 

    The port on which GlassFish listens for CORBA requests. 

    3100

    IIOP SSL Port 

    The port on which GlassFish listens for secure CORBA requests. 

    3820

    IIOP Mutual Auth Port 

    The Mutual Authentication IIOP port number for the initial server instance. 

    3920

  12. Specify the settings for the Sun JMS IQ Manager.

    If you do not install the Sun JMS IQ Manager now, you can install the JMS IQ Manager manually to the same or a different GlassFish server after this installation completes.

    1. Enter one of the following operating system indicators:

      solx86

      Sun Solaris 10 x86 (32/64-bit), Intel

      solamd64

      Sun Solaris 10 x86 (64-bit), AMD

      solaris64

      Sun Solaris 10 (64-bit), SPARC

      aix32

      IBM AIX 5L 5.2 and 5.3 (32-bit)

      aix64

      IBM AIX 5L 5.2 and 5.3 (64-bit)

      linux7

      Red Hat Enterprise Linux Advanced Server 3, 4, and 5 (32/64-bit), Intel

      linuxamd64

      Red Hat Enterprise Linux Advanced Server 3, 4, and 5 (64-bit), AMD

      redhat5_64

      Red Hat Enterprise Linux 5 Advanced Server (Intel and AMD x86-64)

      suse8

      SUSE Linux Enterprise Server 9 and 10 (32/64-bit), Intel

      win32

      Windows (32-bit)

      donotinstall

      Does not install the Sun JMS IQ Manager

    2. Press Enter to accept the default Sun JMS IQ Manager port number of 18007, or provide a custom value and then press Enter.

    3. Press Enter to accept the default Sun JMS IQ Manager SSL port number of 18008, or provide a custom value and then press Enter.

    4. If you have a previous version of the Sun JMS IQ Manager, provide an absolute path to the previous directory to migrate it to your current installation directory, or press Enter to skip this step.

  13. Specify the settings for the Enterprise Manager:

    1. Press Enter to accept the default Host Name, or provide a custom value and then press Enter.


      Note –

      The Host Name is the name of the computer on which you are installing Java CAPS. Enterprise Manager relays this name to other components, such as the GlassFish server. These components then use this name to access Enterprise Manager. Although this value is usually the name of the computer Enterprise Manager is running on, you can specify the name of a proxy server.


    2. Press Enter to accept the default Admin Port for Enterprise Manager, or provide a custom value and then press Enter.


      Note –

      The default value is 15000. This port assignment requires five consecutive available ports and the system selects four additional port numbers that sequentially follow the initial port number (15001–15004 for the default). Port checking performed at installation only detects ports in use at that time, so the installation will not detect ports used by other applications that are not currently running. Use caution if you change the default port value.


    After setting the parameters for all the components you are installing, a Pre-Installation Summary appears that lists your selections for this installation.

  14. If you are satisfied with your installation selections, press Enter to continue and then press Enter a second time to begin the installation.


    Note –

    If you are not satisfied with your installation selections, type back and press enter to make the appropriate changes.


  15. After the installation completes, press Enter to exit from the Console Installer.


    Caution – Caution –

    Ensure that you exit from the Console Installer as directed. If you exit the program by pressing CTRL-C, the javacaps_install_log.xml file will not be placed in the installation directory.


    After you exit the Installer, a Sun Product Registration form opens on your browser. You can complete the Java CAPS product registration at that time, or you can return to the registration form at a later time by navigating to the base installation directory and typing register.html at the command prompt.