Install GlassFish
To install GlassFish, go to https://glassfish.dev.java.net/public/downloadsindex.html to download the current application.
- Get the appropriate binary build installer for your platform.
The DVN uses V2-UR1 at this time; therefore, for a Linux OS the installer to use is glassfish-installer-v2ur1-b09d-linux.jar.
- Set the
JAVA_HOME variable to your JDK 6 directory, /usr/java/<jdk 1.6 directory>.
- To initiate the GlassFish installation, ensure that you have an X-Windows server on a host that can receive the licensing agreement. The recommended host is a VM running Linux and X-Windows on a PC.
If you do not have an X-Windows server running, the installation cannot provide feedback.
- Type the command
java -Xmx256m -jar <filename>.jar.
For example, type java -Xmx256m -jar glassfish-installer-v2ur1-b09d-linux.jar.
- When the
glassfish directory is created by the jar file, change to that directory.
Type cd glassfish.
- Use the Ant tool to execute the setup script. You can use the version in the GlassFish distribution located in the folder
glassfish/lib/ant.
Type the following:
set ANT_HOME=glassfish
chmod -R +x lib/ant/bin
lib/ant/bin/ant -f setup.xml