snpe wrote:
Hello,
  I try OfficeBean and have one problem :

when I call program with OO jars (jars in OO_HOME/program/classes) it work fine

I want import jars in my project, but then OfficeBean can't find soffice program
OO seek soffice in /soffice always (linux)
When using OOoBean then jars, such as jurt.jar, ridl.jar, etc. must be on the class path. They must also be located in the program classes directory. OOoBean uses com.sun.star.lib.util.NativeClassLoader (jurt.jar) to get the location of the executable. NativeClassLoader examines the parent directory of the jar, where it finds soffice.

I link soffice to /soffice for check and get InteruptedException
How I can set program location for OfficeBean ?
One could use an UrlClassLoader that knows the location of soffice to load OOoBean. (never tested that before). Have a look at LocalOfficeConnection.getProgramPath and NativeLibraryLoader.getResource.

Joachim.


Thanks
Haris Peco


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


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

Reply via email to