From: Patrick P. <psy...@gm...> - 2018-08-06 15:57:41
|
For any newbies to Jython and/or Java. Running Java's main() method from Jython is simple. If you have arguments to pass to the main, you must put them into a list (i.e. L = ['arg1', 'arg2']). Otherwise, you can create an empty list (L = []). Then pass the list to main(). Example: b is a class object. If it has a main method, then you can do the following: b.main(L). For more, including an example, go to: http://jythonblog.blogspot.com -- /Patrick Palczewski/ *VRS# 818.208.2344* |