pyjt¶
|
Start the JVM. |
|
Stop the JVM. |
|
Run the main function of app. |
Details
- pyjt.run(app, args=[''])¶
Run the main function of app.
This helper function will start the app by invoking it’s “main” function.
- Parameters:
app (string) – The application to be started, e.g.
myapp.Application
args (string[]) – The arguments for the main function
Note
You can as well start your application manually, assuming your application is in MyApplication.java, the could would look like:
import MyApplication MyApplication.main()
- pyjt.shutdown()¶
Shuts down pyjt and the JVM.
- pyjt.start(*args, classpath=None)¶
Start the JVM.
- Parameters:
classpath (string) – If set, use this classpath for the JVM, otherwise use CLASSPATH environment variable.
Needs to be called before using pyjt. Only after starting the jvm you can import java classes using:
- pyjt.stop()¶
Stop the JVM.