JPython

Home

Download

Applet Demos

Installation Notes

FAQ

Documentation

Mailing List

Bugs!

 

Related Links

Python Language

Java Language

CNRI

 

Email Us

 jpython@python.org 

 

Installation

JPython is distributed as a self-extracting .class file created by InstallShield - Java Edition. To install JPython, open the command line to the directory in which you have placed the JPython103.class file and then type:

<java interpreter> JPython103

You will probably type one of the following three lines, depending on your system. Note that the class name does NOT end with ".class":

java JPython103

jre JPython103

jview JPython103

After completing installation, you should be able to run JPython by typing:

jpython

What Can Go Wrong

You should check out this section if your JPython installation doesn't quite work right. It will contain tips for solving the most common problems.

Can't Access Standard Python Modules

JPython only comes with a small collection of the standard Python modules. This is both due to some legal issues as well as the fact that much of the functionality of these modules is duplicated by Java packages. If you want to use parts standard Python library that are not included with JPython, you have two choices:

  1. Download and install these libraries from the JPython Download Page
  2. Add a pointer in your python.path to the Lib directory of a preexisting Python 1.5 distribution. This requires editing your "registry" file.

Other Problems

Any other problems with the installation should be reported to jpython@python.org. The installer has been modified so that JPython is now responsible for generating the appropriate launch script for each platform. The good news is that we're no longer dependant on InstallShield for fixing platform specific bugs (they don't seem to care at all about AIX, IRIX, Linux, or Mac). The bad news is that I'm now dependant on you to report any problems with the installer so that they can be fixed.

Platform Specific Notes

If all else fails, you might find that your problem is unique to your platform, and has a solution mentioned on the Platform Specific Information page.