From: Charlie G. <cha...@gm...> - 2008-06-22 21:49:59
|
On Fri, Jun 20, 2008 at 10:05 AM, Mahidhar Ramesh Rajala <mah...@in...> wrote: > 1) Test.Py > class Test: > def dump(self): > pass To expose a function to Java from jythonc, you need to add an @sig to the function's docstring: http://jython.org/Project/jythonc.html#compiling-python-methods-to-java-methods In general, I wouldn't recommend using jythonc unless you need to run in an applet or a restricted classloader. It's going to be replaced in Jython 2.5 and there are better methods to make Python classes callable from Java: http://wiki.python.org/jython/JythonMonthly/Articles/October2006/3 Charlie |