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.
Download Jython from the following location:
http://downloads.sourceforge.net/project/jython/jython/2.5.1/jython_installer-2.5.1.jar
Run the installer as follows:
java -jar jython_installer-2.5.1.jar |
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 |
Configure GlassFish Server to use the Jython installation with the following command:
asadmin deploy --property jython.home=jython-install-location |