Jochen Staerk wrote:
Hi,ooobean is great, I use it in a small project (gnuaccounting.sf.net), but I have a problem: my app only works when ooobean.jar is in the classpath. I can't deploy ooobean.jar with my application because it uses relative paths to the installed openoffice. I can't use sth. like a custom OOoconnection because this would require a started OO instance with a customized config. 1) Is there any way to start a standard openoffice instance (without changing the config) from a custom directory, something like like startOOoConnection('file:///usr/local/lib/ooo-2.0')?
I always asked myself why such method does not exist in the SDK. Of course, it is possible to get around of the problem by implementing a custom class loader. How to do this is described in http://technology.amis.nl/blog/?p=1284.
However, all Java developer would love to have a convenience method to start OpenOffice.org by passing the directory where OpenOffice.org is installed.
I reported a enhancement-bug for that, at http://www.openoffice.org/issues/show_bug.cgi?id=70428 Regards, - Daniel
2) if not, how hard would it be to patch ooo to support something like this? Would one have chances to get this upstream? 3) would this violate any design issues, e.g that a ooo 2.0.3 officebean could or should not connect to 2.0.2 libraries (.so/.dlls)? 4) how else could this be done? As far as I understood a classloader would be tedious(?), so i currently use a starter. This starter basically executes java -cp <your openoffice location> mainclass (is there any way to tell a running jre to change classpath or start another instance with another cp?) and interestingly is currently the reason why the windows version of my app does not work. 5) I'd like to keep this thing as multiplattform as possible, that's e.g. the reason why I don't just bundle it with windows-portableopenoffice.... so: how would you do that? thanks a lot and kind regards, Jochen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
