I would like to use the Apache commons libs to have direct access to BSD rexec protocols.

Here is what I am encoutering:

Jython 2.1 on java1.4.0_02 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import org.apache.commons.net.bsd.RCommandClient as RCommandClient
>>> import org.apache.commons.net.SocketClient as SocketClient
>>> r = RCommandClient
>>> port = r.DEFAULT_PORT     
>>> port
514
>>> r.connect('localhost', port)
Traceback (innermost last):
  File "<console>", line 1, in ?
TypeError: connect(): self arg can't be coerced to org.apache.commons.net.SocketClient
>>>

So I tried to "coerce" these class types:

>>> coerce(r, SocketClient)
(<jclass org.apache.commons.net.bsd.RCommandClient at 16388314>, <jclass org.apache.commons.net.SocketClient at 6852241>)

>>> coerce(SocketClient, r)
(<jclass org.apache.commons.net.SocketClient at 6852241>, <jclass org.apache.commons.net.bsd.RCommandClient at 16388314>)

>>> SocketClient(r)
Traceback (innermost last):
  File "<console>", line 1, in ?
TypeError: can't instantiate abstract class (org.apache.commons.net.SocketClient)


I checked the mailing lists and found a reference to subclassing to java.lang.Object first(?) but jython won't let me inherit from two native java classes.  Does anyone have suggestions on how I can get this to work?

thanks (big time) ----

warren.