Hi Neeraj,

Neeraj Mahajan wrote:

The problem with BSF is that it exposes Python via Jython. Jython today is only Python Language 2.1 compliant, while latest version of Python is 2.4.2. There is a strong inclination in my company to support latest Python language. This is possible only with CPython. To use CPython and COM with Java, a generic SPE would be required and to achieve it I thought UNO could be used. But I am not sure if UNO/URE works on Mac and whether it is officially available for Mac.

whenever you have a need to employ a non-_javascript_ing language from Java you will run into the very same problems that BSF has solved already. Or with other words: you probably can simplify your task by creating a BSFEngine implementation (with a lot already handled by the default implementation) for your desired scripting language. The existing Jython implementation furthermore would demonstrate you how to integrate it seemlessly such, that you could invoke methods on Java objects (calling back into Java) ie. UNO objects via their Java interface.

Of course, if that does not alleviate the burden on your shoulders you'd have to look for other solutions.

Regards,

---rony

Reply via email to