JarRunner (Jython API documentation)
Date: 2022-09-10

org.python.util

## Class JarRunner

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

-     public class JarRunner
      extends java.lang.Object

  JarRunner initializes sys (PySystemState), passing args in (including the name "__run__" as arg 0 for consistancy with Python expectations), and import __run__. It is intended to be used to allow an application jarred up with Jython's runtime to run like "java -jar foo.jar". It requires a __run__.py in the jar that will execute the program, and the following entry in the manifest: Main-Class: org.python.util.JarRunner XXX: For the moment it should be considered experimental, but it is simple enough that I expect to be able to remove this warning pretty quickly.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JarRunner()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(java.lang.String[] args)`
    `static void` | `run(java.lang.String[] args)`

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

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

- - ### Constructor Detail

    - #### JarRunner

          public JarRunner()

  - ### Method Detail

    - #### run

          public static void run(java.lang.String[] args)

    - #### main

          public static void main(java.lang.String[] args)

Jython homepage