aloizio wrote:
Hi


Hi there!

The application will be located into Linux platform and Windows XP platform.
First I am testing into Windows XP platform. I am using TomCat 5.5.9, Java
SDK 1.4 and the OpenOffice 2.0. I am trying to execute a simple test where a
web page is accessed and an  user pressed a button. In this point, the
application must retrieve a file as a byteStream from  database and convert
it to another format using OpenOffice API.
When I am debugging the code I get error in the line that contains
"com.sun.star.comp.helper.Bootstrap.bootstrap()". Another question, Should I
put all OpenOffice file into the server?

You need a normal OpenOffice.org installation on the server.

And last, It is necessary using the
file soffice.exe to execute OpenOffice from Java?

Yes!

That´s because OpenOffice.org is mainly written in C++.
But you can access the API from java via UNO.

This doesn't sound good to
me.

Note that there is a -headless mode / command line option for not displaying any UI and not requesting interaction which would be quite useful for your szenario. See soffice -help for more commandline options.

Please also note that the soffice prozess does still need information from the OS graphic subsystem, eg. to get information about fonts etc.

This means on Linux or Unix systems that you have to set the DISPLAY variable to some X server. I would suggest to also start an Xvfb ( which is a virtuall framebuffer X server that does not interact with a graphics card ) or Xvnc server (use vncserver script to start that) and set the DISPLAY environment variable so that soffice connects to that as it´s X Server.

Kind regards,
Bernd

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

Reply via email to