You can use a Java/COM bridge of which there are several available. Jacob
is a good open source one, JIntegra is a paying licence based one. Both
work reasonably OK but you do need to know a bit about how COM works.
Senior Automation Informatics Scientist
Cambridge Antibody Technology
[mailto:jython-users-admin@... Behalf Of Kevin
Sent: 02 January 2002 14:34
Subject: Re: [Jython-users] accessing win32com.client from jython
I haven't explored this, but it seems you could use JNI to embed C python in
the JVM, then invoke Python code in the CPython interpreter.
> On Mon, Dec 31, 2001 at 10:01:30PM +0000, Dana.Moore@... wrote:
> | Is there a way in which I can access win32 libraries
> | from jython?
> | CPython has a set of excellent containers for windws
> | platform specific tools. Is there any way in which I can
> | access these capabilities from Jython as a way of
> | bridging Java and COM without.
> | Has anyone ever explored this?
> | I know that I could architect things such that I could
> | use sockets to communicate from Java/Jython to Cpython-
> | hosting-COM, but that seems unecessarily cumbersome to
> | me.
> | Anyone have another approach.
> Microsoft's JVM supports COM. It is the only one that does, though.
> Part of java's goal is to be portable. As such it can't rely on the
> underlying platform. A major difference between Java and CPython is
> that java takes the least common denominator approach, whereas CPython
> (the docs) just warn you that your program won't be portable.
> You could also use any other distributed object middleware to connect
> Java/Jython to CPython to take advantage of stuff java doesn't let you
> use. For example: XML-RPC or CORBA.
> Consider what God has done:
> Who can straighten what He has made crooked?
> Ecclesiastes 7:13
> Jython-users mailing list
Jython-users mailing list