From: <Dan...@at...> - 2001-12-31 22:01:36
|
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. Thanks for any good suggestions. -- _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Dana Moore - BBN Technologies 703.284.4740 (W) 240.350.4196 (M) dan...@at... _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ |
From: dman <ds...@ri...> - 2001-12-31 22:24:14
|
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 |
From: Kevin B. <kb...@ca...> - 2002-01-02 14:34:22
|
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 |
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 |
From: dman <ds...@ri...> - 2002-01-02 17:29:17
|
On Wed, Jan 02, 2002 at 07:34:17AM -0700, Kevin Butler wrote: | 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. Sure, or you could use JNI to embed COM directly. I haven't used ILU but it certainly looks worth a try if you need or intend to use something of that nature : http://www.parc.xerox.com/istl/projects/ILU/ -D -- It took the computational power of three Commodore 64s to fly to the moon. It takes at least a 486 to run Windows 95. Something is wrong here. |