Sun GlassFish Enterprise Server v3 Scripting Framework Guide

ProcedureTo Install Jython from Update Center

The GlassFish Update Center provides a Jython package. The package installs a Jython instance that enables creation of Jython applications for the Enterprise Server. If you installed Jython from Update Center, there is no need for further configuration of jython.home property.

  1. Start the Update Tool with the following command:


    as-install/bin/updatetool
  2. Choose the following option from Available Add-ons and click Install:


    Jython Runtime IPS package for GlassFish v3

    Update center automatically completes the installation of the container and configures it for use with Enterprise Server.

  3. Set the following environmental variables:

    Set the JYTHON_HOME variable to the Jython install location:

    export JYTHON_HOME=/as-install/glassfish/jython

    Add the JYTHON_HOME/bin directory to the path:

    export PATH=$JYTHON_HOME/bin:$PATH

    You should now be able to invoke Jython from command line as follows:

    jython