The Jython Interpreter
The
jython interpreter built during installation
(see Chapter 2) is run similarly to the
python program:
[path]jython {options} [ -jjar| -ccommand|file| - ] {arguments}
-j
jar tells
jython that the main script to run is
__run__.py in the .jar
file. Options -i, -S, and
-v are the same as for
python. --help is like
python’s -h,
and --version is like
python’s
--V. Instead of environment variables,
jython uses a text file named registry
in the installation directory to record properties with
structured names. Property python.path, for
example, is the Jython equivalent of Python’s
environment variable PYTHONPATH. You can also set
properties with jython command-line options, in
the form -D
name
=
value.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access