jython (Jython API documentation)
Date: 2017-06-30

org.python.util

## Class jython

- java.lang.Object
- - org.python.util.jython

-     public class jython
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static boolean` | `shouldRestart`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `jython()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(String[] args)`
    `static void` | `run(String[] args)`
    `static void` | `runJar(String filename)` Runs a JAR file, by executing the code found in the file __run__.py, which should be in the root of the JAR archive.
    `static void` | `shutdownInterpreter()` Run any finalizations on the current interpreter in preparation for a SytemRestart.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### shouldRestart

          public static boolean shouldRestart

  - ### Constructor Detail

    - #### jython

          public jython()

  - ### Method Detail

    - #### runJar

          public static void runJar(String filename)

      Runs a JAR file, by executing the code found in the file __run__.py, which should be in the root of the JAR archive. Note that the __name__ is set to the base name of the JAR file and not to "__main__" (for historic reasons). This method do NOT handle exceptions. the caller SHOULD handle any (Py)Exceptions thrown by the code.
      Parameters:
        `filename` - The path to the filename to run.

    - #### main

          public static void main(String[] args)

    - #### run

          public static void run(String[] args)

    - #### shutdownInterpreter

          public static void shutdownInterpreter()

      Run any finalizations on the current interpreter in preparation for a SytemRestart.

Jython homepage