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.

 

Neeraj

 


From: Rony G. Flatscher [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 22, 2006 8:59 PM
To: [email protected]
Subject: Re: [udk-dev] Need guidance about using UNO/UDK in my project

 


Neeraj Mahajan wrote:

I am developing a Java application (commercial). I want to provide a generic scripting programmability extension (SPE) to my application. Using SPE users should be able to write wrappers for scripting languages. For now, COM and python wrappers are under consideration. My application has to work under Windows, Unix variants and MacOS. I have studied various technologies that could be used for SPW including XML-RPC, CORBA, SOAP, JNI etc. I feel that UNO/UDK could provide me a better solution using which I can develop the SPE. I could not find the UNO SDK and Runtime for Mac. Is Mac supported? If not can I make a build for Mac?

Could UNO UDK be used for development of SPE?

I think I would just require the core part (UNO) and not the Openoffice part.

 

Any comments appreciated.

Well, as you are using Java, then I might suggest to look into the Apache BSF (Bean Scripting) project at <http://jakarta.apache.org/bsf>. It is a Java framework for supplying scripting engines to be easily used by Java.

As OOo 2.0.0 started to include a scripting framework written in Java, you can even easily employ that by combining it with BSF.

For an idea you may want to look up BSF4Rexx, which is in beta and which uses that approach to allow multiplatform scriptablity with Rexx and Open Object Rexx (ooRexx) at <http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/>. It comes with nutshell examples that demonstrate how one can drive OOo from ooRexx (using BSF under the covers). The sources contain the needed code to plug-in the language to the OOo scripting framework (you'd need to change like ten lines of code to add another BSF supported scripting language to OOo).

HTH,

---rony

Reply via email to