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.
Download the GlassFish v2 distribution at
Set the environment variable JAVA_HOME to point to the directory in which JDK 1.6 is installed.
Run the following command:
#java -Xmx256m -jar filename.jar
Set ANT_HOME to point to the installation of Ant 1.7 or above.
Ant 1.6.5 is the default Ant version for GlassFish. Make sure that ANT_HOME is not pointing to GlassFish Ant.
Navigate to the GlassFish directory:
cd glassfish
Run the following command:
ant -f setup.xml
Start GlassFish.
cd bin
<downloaded-dir>/glassfish/bin>/asadmin start-domain