when running open office from a bootstrap routine or in headless mode for batch processing make sure the following settings to avoid an unsatisfied link error
soffice -accept="pipe,name=my_app;urp;"
java -Djava.library.path=/opt/openoffice.org/program java.app.class
useful reference on Oo: http://www.oooforum.org/forum/viewtopic.phtml?t=40263