Hi ML,

I'm very new here and I want to start developing things for and with
UNO. I do not know, whether I am right in this list. If not, please tell
me where to go.

Just when I started the sdk Developer Guide for OO2 I experienced
problems with the first application.

First my system information: I use Debian Linux. My IDE is Eclipse. I
installed OpenOffice2 and the OO2 sdk. I use blackdown java 1.4.2.03.

My very first application looks like this:
-----%<-----
package de.twc.openoffice;

public class FirstUnoContact {
        
  public static void main(String[] args) {
    try {
        //       get the remote office component context
        com.sun.star.uno.XComponentContext xContext =
        com.sun.star.comp.helper.Bootstrap.bootstrap();
        System.out.println("Connected to a running office ...");
        com.sun.star.lang.XMultiComponentFactory xMCF =
        xContext.getServiceManager();
        String available = (xMCF != null ? "available" : "not available");
        System.out.println( "remote ServiceManager is " + available );
    }
    catch (java.lang.Exception e){
        e.printStackTrace();
    }
    finally {
        System.exit(0);
    }
  }
}
-----%<-----

The fitting ant script works out fine and OpenOffice 2 ist running. OO2
was started with following command:
ooffice "-accept=socket,host=localhost,port=8100;urp"

Now I want to run the application and I get following error:
-----%<-----
com.sun.star.comp.helper.BootstrapException: no office executable found!
        at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java)
        at de.twc.openoffice.FirstUnoContact.main(FirstUnoContact.java:9)
-----%<-----

Can you help me?

Greetings, Tobias

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to