Sun GlassFish Communications Server 2.0 Installation Guide

Installing Sun GlassFish Communications Server With JAR-based Installer

This section provides instructions for installing SailFindistribution, which is available as a JAR-based installer..

ProcedureTo Install Sun GlassFish Communications Server With JAR-Based Installer

Before You Begin

Get JDK 6 from, if you are using Solaris, Linux, or Windows.

If you are using Mac OS X, you need to download JDK from and make JDK the default JVM.

  1. Download the SailFin distribution from

  2. Set the environment variable JAVA_HOME to point to the directory in which JDK is installed.

  3. Run the following command:

    java -Xmx256m -jar filename.jar

    Note –

    If you have trouble running this command, run this command with a higher —Xmx value. Example, java -Xmx512m -jar filename.jar

  4. Navigate to the sailfin directory:

    cd sailfin

  5. If you are using operating system that is a derivative of UNIX:

    chmod -R +x lib/ant/bin

  6. Run one of the following commands:

    • If you want SailFin with clustering, run the following command:

      lib/ant/bin/ant -f setup-cluster.xml

      Or, for Windows: lib\ant\bin\ant -f setup-cluster.xml

    • If you want SailFin without clustering, run the following command:

      lib/ant/bin/ant -f setup.xml

      Or, for Windows: lib\ant\bin\ant -f setup.xml

  7. Use the Admin Console to register your installation of SailFin. Start SailFin using the instructions in the Quick Start guide.