Sun GlassFish Enterprise Server v3 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 inform the Jython install location to the Enterprise Server.

  1. Download Jython from the following location:

    http://downloads.sourceforge.net/project/jython/jython/2.5.1/jython_installer-2.5.1.jar

  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:

    jython

  4. Inform and configure the Enterprise Server with the location of Jython installation with the following command:

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