Hallo,

ich habe mich mal an einen ersten Java-OO-Test gewagt.

Das Programm lässt sich zwar fehlerfrei compilieren, beim Ausführen gibt
es aber folgende Fehlermeldung:
com.sun.star.comp.helper.BootstrapException: no office executable found!

Kann mir jemand einen Tipp geben?

Vielen Dank !

Beste Grüße
Jochen

__ Quelltext: Test1.java
import com.sun.star.uno.XComponentContext;
import com.sun.star.comp.helper.Bootstrap;
import com.sun.star.lang.XComponent;

public class Test1{
  XComponent xComponent;
  public Test1() {
    System.out.println("Konstruktorhallo");
    try {
      XComponentContext xContext = Bootstrap.bootstrap();
      if (xContext == null) {
        System.err.println(
          "ERROR: Could not bootstrap default Office."
        );
      }
    }catch (java.lang.Exception e){
      e.printStackTrace();
    }finally {
      System.exit( 0 );
    }
  }
  public static void main(String[] args) {
    new Test1();
  }
}

__CLASSPATH:
export CLASSPATH=$CLASSPATH:.:/usr/share/java/openoffice/jurt.jar:
/usr/share/java/openoffice/juh.jar:
/usr/share/java/openoffice/ridl.jar:
/usr/share/java/openoffice/unoil.jar



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Antwort per Email an