From: Neil B. <nei...@ca...> - 2002-01-02 14:43:41
|
Hello, 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. Cheers, Neil Benn Senior Automation Informatics Scientist Cambridge Antibody Technology -----Original Message----- From: jyt...@li... [mailto:jyt...@li...]On Behalf Of Kevin Butler Sent: 02 January 2002 14:34 To: dman Cc: jyt...@li... 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. Python-In-Python, anyone? kb dman wrote: > > On Mon, Dec 31, 2001 at 10:01:30PM +0000, Dan...@at... 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. > > -D > > -- > > Consider what God has done: > Who can straighten what He has made crooked? > Ecclesiastes 7:13 > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |