Apache OpenOffice (AOO) Bugzilla – Issue 80987
Oo 2.2.0 client app in Netbeans fails at bootstrap()
Last modified: 2013-02-24 21:07:19 UTC
OpenOffice.org 2.2.0 client application generated in Netbeans 5.5.1 fails at: XComponent xContext = Bootstrap.bootstrap(); com.sun.star.comp.helper.BootstrapException: no office executable found: at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java) Linux platform is Ubuntu 7.04 (Feisty Fawn) I installed OpenOffice to the default location and have not moved any files. OpenOffice shell script (soffice) and soffice.bin are installed at: /usr/lib/openoffice/program SDK is at: /usr/lib/openoffice/sdk. Juh.jar, jurt.jar, jut.jar, ridl.jar, unoil.jar and JDK 1.6 are all included in the project. Is there a way to force bootstrap to find the required office executable? What file exactly is the method looking for, and where does it expect the executable to be found?
i won't guarantee that the bootstrap mechanism works on Ubuntu. They do some things different than the default OpenOffice which you can download from www.openoffice.org. You can try to insert a symbolic link /usr/bin/soffice -> /usr/lib/openoffice/program/soffice or you can start the application with java -Dcom.sun.star.lib.loader.unopath=/usr/lib/openoffice/program -jar myapplication.jar Anyway I will check it again and will see what we can improve ...
set target
accepted
Fix: I resolved this bootstrap exception by implementing the solution detailed in the document OpenOffice NetBeans Integration from the openoffice.org wiki. (I should have discovered this document sooner.) The fix entails modifying the project properties by adding the Jar/Folder /usr/lib/openoffice/sdk to Libraries, designating com.sun.star.lib.loader.Loader as the main class in Run and passing the project's main class as the first argument. A third modification, passing - Dcom.sun.star.lib.loader.unopath="/usr/lib/openoffice/program" as a VM option does not appear to be necessary for my configuration (running a bare Client Application), which provides a symbolic link to /usr/lib/openoffice/program/soffice in the /usr/bin directory. I hope this information will be useful to improving the api. Many thanks for your assistance.
set target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
invalid
closed