Hi guys,

I finished my project under Windows and since it's all written in Java I wanted to try it under linux. Several errors that occured (Sidenote: Why is the folder structure of OO installation directory different under linux compared to windows??) could be fixed but one is persistent: I always get a NoConnectionException under Linux, whereas under Windows everything goes fine.
For testing purposes I checked OO Connection before loading from Stream:

       aBean = new OOoBean();
       try
       {
           aBean.getOOoConnection();
       }
       catch (NoConnectionException e1)
       {
           e1.printStackTrace();
       }

Error:

com.sun.star.comp.beans.NoConnectionException
      at com.sun.star.comp.beans.OOoBean.setOOoConnection(OOoBean.java:185)
      at com.sun.star.comp.beans.OOoBean.getOOoConnection(OOoBean.java:283)
      at de.abas.macro.AbasEditor.<init>(AbasEditor.java:112)

I think the rest of the stacktrace is not important.
I did setup all needed external jars in the manifest file (ridl.jar,juh.jar.jurt.jar,sandbox.jar,officebean.jar,unoil.jar) and they are properly loaded.

Executing "soffice" is also working if executed from the shell. So the com.sun.star.comp.beans.LocalOfficeConnection.OfficeService.startupService() doesn't throw an error.

I don't understand, why it is able to execute under Windows with the above "setup" (external jars, environment variables UNO_PATH) and why it is not loading under linux.

I'm out of available options (for me) since I read through every relevant source code of OOBean several times but I don't see what I'm doing wrong here.

Any help/hint would be great.

Regards,

Steffen Börsig

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

Reply via email to