From: D-Man <ds...@ri...> - 2001-07-17 03:16:01
|
On Mon, Jul 16, 2001 at 04:23:20PM -0400, Freeze, Deron wrote: | | Trying to execute some python in a Java program I have. This code | uses the win32com module to access a COM component. The interpreter Are you using Microsoft's JVM? I've heard that it supports COM, but I've never looked into it. AFAIK Sun's JVM doesn't support COM because COM is an MS-only technology. Where did you get the win32com package from? If you got it from Mark Hammond or ActiveState then it probably requires CPython because it is a C extension that provides a Python interface to the Windows COM system. The CPython win32all extensions won't work with Jython because Jython is restricted to using only features that are available to Java code. A possible solution would be to use ILU to use the COM stuff in CPython and the Java stuff in Jython or use something like XML-RPC or CORBA to communicate the logic you need to between COM stuff in CPython and Java stuff in Jython. HTH, -D |