Sun Java System Application Server 9.1 Update 1 Installation Guide

ProcedureTo Install GlassFish Application Server

Before You Begin

Get JDK (Java SE Development Kit) 5 or higher from, if you are using Solaris, Linux, or Windows.

If you are using Mac OS X, you need to download JDK 5 (supported on Mac OS X 1.4 or later) from and make JDK 5 the default JVM.

If you are using AIX, download JDK 5 from:

  1. Download the GlassFish v2 distribution

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

  3. Run the following command:

    java -Xmx256m -jar <filename>.jar

  4. Set ANT_HOME to point to the ant 1.6.5 installation, which is at <downloaded-dir>/glassfish/lib/ant directory.

  5. Navigate to the glassfish directory:

    cd glassfish

  6. If you do not want clustering capabilities, run the following command:

    ant -f setup.xml

    • If you want to use GlassFish with clustering, change the command to:

      ant -f setup-cluster.xml

  7. Use the Admin Console or Update Center to register your installation of GlassFish. Start GlassFish using the instructions at Starting the Server in Sun Java System Application Server 9.1 Quick Start Guide.