Skip to content
Helper class for Open Office command line connection
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/ooo/connector Fix missing javadoc errors May 21, 2017
.gitignore Add .gitignore for maven / IntelliJ project May 20, 2017 First commit of bootstrap-connector May 20, 2017
pom.xml Remove unneeded content from pom.xml May 21, 2017


This is a short How-To for quickly solving the regularly occurring error "no office executable found!". You can read a huge number of threads in various forums dealing with this problem. This error is caused by using the Bootstrap Connection Mechanism (introduced with OOo 2.x) in conjunction with moving or copying "juh.jar" (OOo's "Java UNO Helper" JAR file containing the class file "Bootstrap.class") from the subfolder "program\classes" of the OOo installation folder (which is for example on Windows "c:\program files\ 2.3") to another folder (mostly a subfolder, which is directly accessible from a web container or web server like for example Tomcat).


So, if you're encountering "no office executable found!" follow these steps:

  1. Download the file "bootstrapconnector.jar" attached to this post and save it.
  2. Put the JAR file "bootstrapconnector.jar" for example in the same folder, where you put "juh.jar", and add it to your CLASSPATH or add it in your IDE to the libraries for source code compiling (for example open in NetBeans the project properties and select there "Libraries" > tab "Compile" > press "Add JAR/Folder" > locate the "bootstrapconnector.jar" and press "Open").
  3. Determine the folder of your executable "soffice.exe" (on Windows systems) or "soffice" (on *nix systems). On Windows it might be something like "c:\program files\ 2.3\program", and on *nix for example something like "/opt/openoffice.org2.3/program" or "/usr/lib/".
  4. Edit your Java source code file, that tries to get the connection by calling "Bootstrap.bootstrap()". This is mostly done with a Java source code line looking like this:
    XComponentContext xContext = Bootstrap.bootstrap(); Perform the following steps in this Java source file:
    1. Add the following line to your import statements:
      import ooo.connector.BootstrapSocketConnector;
    2. Add a line above "Bootstrap.bootstrap()" to assign the name of the folder of your executable to a String variable:
      String oooExeFolder = "C:/Program Files/ 2.3/program/";
    3. Change the call of "Bootstrap.bootstrap()" to "BootstrapSocketConnector.bootstrap(oooExeFolder)": XComponentContext xContext = BootstrapSocketConnector.bootstrap(oooExeFolder);
    4. Save and compile the edited file and see if "no office executable found!" has really vanished.
  5. If you want to learn more about what you can do with "bootstrapconnector.jar", stay tuned. (To be continued...)


Most of the source code in the attached JAR file has been taken from the Java class "" (Revision: 1.15) from the UDK project (Uno Software Development Kit) from ( The source code is available for example through a browser based online version control access at http://udk The Java class "" is there available at

The idea to develop the BootstrapConnector, BootstrapSocketConnector and BootstrapPipeConnector comes from the blog "Getting started with the API part III : starting with jars not in the OOo install dir by Wouter van Reeven" ( and from various posts in the "(Unofficial) Forum" at and this forum complaining about "no office executable found!".


Taken from

You can’t perform that action at this time.