Bootstrap UNO without DYLD_LIBRARY_PATH being set on startup

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
miket
Posts: 4
Joined: Tue Sep 09, 2008 5:03 pm

Bootstrap UNO without DYLD_LIBRARY_PATH being set on startup

Post by miket »

I have an application that uses OpenOffice as a client for doing document conversion. The application is thought to be installed on a Mac that already has OpenOffice installed. My problem is, that I seemingly need to set DYLD_LIBRARY_PATH before starting my application -- otherwise I cannot bootstrap UNO (createSimpleRegistry() fails).
I have tried to give the createSimpleRegistry call a path to the <OO.o>/program directory, but that path seems only to be used to find the "bootstrap.uno" library, and not the ones that "bootstrap.uno" requires (ktrace hinted this).
I have also looked at the unoapploader, but I would rather not use that.
Is it possible to use some other environment variable that I can set at run-time? Or set the path in some other way..?

Kind regards,
Michael
OOo 2.4.X on Ms Windows XP + Mac OSx
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: Bootstrap UNO without DYLD_LIBRARY_PATH being set on startup

Post by hol.sten »

Try this for example: [Java solution] "no office executable found!": http://user.services.openoffice.org/en/ ... =44&t=2520
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
Post Reply