Home www.python.org
Download Documentation
Documentation
Overview
Executive Summary
Invoking Jython
Jython Registry
Embedding
Compiling Jython from source
 
Working with Java
The Basics
JavaBean Properties
Java arrays
Subclassing
Building applets, servlets, beans...
 
Python Docs (exits)
Python Tutorial
Library Reference
 
Other
Jython vs. CPython
Jython FAQ (exit)
List Archives (exit)
JPython paper (exit)
 
Email Us
jython-dev@lists.sourceforge.net
 
 
  

Compiling Jython

Most users of Jython will never be required to look at the contents of the source directories, or try and recompile any of the files in the org.python package. All of these files have been precompiled in jython.jar.

For those people who do want to rebuild Jython from the source, for whatever reason, the following offers a few tips to keep in mind.

Some of the sources in the org.python.parser package are generated from python.jtt file by the JavaCC parser generator. If you need to make changes to the grammar file you will need to download this JavaCC too. The generated files are also in the distribution, so usually this is not necessary.

To regenerate the parser from the grammar, run jjtree on python.jjt, and then run javacc on the resulting python.jj. This should produce all of the required source files to build the org.python.parser package.

If you have further interest in the Jython source and Jython's continued development, you can read the archives for the Jython-dev mailing list or you can join the list.


1JavaCC version 2.0 is used to create the generated sources included with the distribution.