Oracle GlassFish Server 3.0.1 Scripting Framework Guide

Installing Grails

Grails is available as an IPS package from GlassFishTM Server Update Tool. To develop and deploy Grails applications on GlassFish Server, you must first install the Grails module.

ProcedureTo Install the Grails Module

  1. Install the Grails add-on component that is available from Update Tool.

    For information about Update Tool, see the Oracle GlassFish Server 3.0.1 Installation Guide.

  2. Create a GRAILS_HOME environment variable that points to the Grails directory, as-install/grails.

  3. Add the as-install/grails/bin directory to the PATH environment variable.


Example 2–1 Setting UNIX Environment Variables

On Solaris, Linux, and other operating systems related to UNIX, use the following commands to set the GRAILS_HOME and PATH environment variables:


export GRAILS_HOME=as-install/glassfish/grails
export PATH=$GRAILS_HOME/bin:$PATH
chmod a+x $GRAILS_HOME/bin/*


Example 2–2 Setting Windows Environment Variables

On the Windows operating system, use the following commands to set the GRAILS_HOME and PATH environment variables:


set GRAILS_HOME=C:\GlassFish\grails
set PATH=%GRAILS_HOME%\bin;%PATH%