From: Jim A. <ji...@tr...> - 2001-03-21 07:31:09
|
Mark Ackerman wrote: > > I'm just starting to use jython as a glue language in a java program > (middleware research), and I'm a bit lost. I can successfully call any > method in a standard java class (eg, java.io), but I can't figure out how to > call my own classes and methods. What's the magic I need? > > Mark This works for me: First import your classes: from dsi.fs import FillFiller, Segment Then call a static method: cmdResult = FillFiller.FillSegments( ... ) # Finds the matching static method or just use a class defined in Java: s = Segment( ... ) # This calls the Java constructor with matching parameters. It's really toooo easy ! What problems are you having ? -- __o Jim Adrig _ \<,_ ji...@tr... ' `/ ' ` ___________ `-' `-' |