Oracle GlassFish Server 3.0.1 Scripting Framework Guide

ProcedureTo Install Jython as Standalone

You can download Jython and install it as a standalone product. If Jython is installed as standalone, you need to perform additional configuration steps so GlassFish Server can use the Jython installation.

  1. Download Jython from the following location:

  2. Run the installer as follows:

    java -jar jython_installer-2.5.1.jar
  3. Set the following environmental variables:

    Set the JYTHON_HOME variable to the Jython install location:

    export JYTHON_HOME=jython-install-location

    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:

  4. Configure GlassFish Server to use the Jython installation with the following command:

    asadmin deploy --property jython.home=jython-install-location