Sun GlassFish Web Space Server 10.0 Administration Guide

ProcedureTo Install the GlassFish JAR Based Installer

Installing and starting GlassFish is a prerequisite for installing Web Space Server. The following procedure explains how to install the JAR based installer for GlassFish. The JAR based installer can be downloaded freely from the GlassFish server web site. You can use GlassFish V2 version and also the JAR based installer for GlassFish in case of desktop deployments of Web Space Server, which is used for development and testing of Web Space Server.

You can use the enterprise version of Web Space Server when you deploy Web Space Server in production environment. See, Installing Web Space Server on Sun GlassFish Enterprise Server 2.1.

  1. Download the GlassFish v2 distribution at

    https://glassfish.dev.java.net/downloads/v2.1-b60e.html

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

  3. Run the following command:

    #java -Xmx256m -jar filename.jar

  4. Set ANT_HOME to point to the installation of Ant 1.7 or above.


    Note –

    Ant 1.6.5 is the default Ant version for GlassFish. Make sure that ANT_HOME is not pointing to GlassFish Ant.


  5. Navigate to the GlassFish directory:

    cd glassfish

  6. Run the following command:

    ant -f setup.xml

  7. Start GlassFish.

    cd bin

    <downloaded-dir>/glassfish/bin>/asadmin start-domain