Java's main()

Patrick Palczewski <[email protected]>
Newsgroups gmane.comp.lang.jython.devel
Message-ID <[email protected]>
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*

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Jython-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.