If you are deploying Web Space Server on an existing installation of GlassFish, you need to determine the install location of GlassFish. If GlassFish is installed at the root directory, you can deploy Web Space Server either at the root directory or at the user directory. If GlassFish is installed at your user directory, you must install Web Space Server at the same user directory.
If the JDK, GlassFish, and Web Space Serversoftware are all installed,Web Space Server is at the top layer, GlassFish is in the middle layer, and JDK is in the bottom layer. When you are using the GlassFish Web Space Server bundle, you need to determine the install location of JDK. If JDK is at the root directory, you can install the bundle either at the root directory or at your user directory. If JDK is installed at the user directory, you need to install the bundle at the same directory.
It is a good practice to have your GlassFish installation dedicated only for running Web Space Server.
Suppose you have JDK 1.5 installed in the root directory and you have installed JDK 1.6 in your user directory. Because Web Space Server often works better on a more recent JDK version, you might want to override the installation at the root directory.
Type the following commands in a terminal window:
export JAVA_HOME JDK-install-dir export PATH=$JAVA_HOME/bin:$PATH
To verify the change, type the following command:
echo $JAVA_HOME
The new directory should be listed.