|
From: Leif M. <le...@ta...> - 2006-09-14 16:21:13
|
Simone,
I have not tried this with OpenOffice, but with MS Office I have run
into a
similar problem in the past. MS Office will open up a setup wizard the
first
time any individual user attempts to run Office. This will continue to
happen
until that wizard has been completed.
The problem is that the Wrapper, like all services, runs as the SYSTEM
user by default. This user is headless so that setup wizard will not
be visible.
When I had tried this, even setting the service to interactive did not
make this
setup wizard show itself.
The solution was to change the user account that the service was run as.
See the wrapper.ntservice.account documentation. Note that there are things
that must be done before a specific account can be used.
http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.html
Also, in general when you use Runtime.exec, you should probably be
making use of the returned Process instance. This object can be used to
obtain the exit code of the process. In this case, it is probably returning
an exit code of some sort.
Please post back if you need more info or with how you got it working.
This is something I would like to have in the archives.
Cheers,
Leif
simone.pandolfi wrote:
> Hi,
> I have wrapped with method 1 a java application witch a
> thread which launch OpenOffice with Runtime.getRuntime
> ().exec("C:\Programs\OpenOffice.org1.1.3
> \\program\\soffice.exe -invisible -nologo -headless -
> quickstart macro:///Standard.Module1.CPDF(file.rtf)").
>
> It works rigth in console mode, but if installed as
> Windows service, it seems it doesn't execute the command
> (or the macro. I have no message or error, just the macro
> doesn't produce the file expected)
>
> Please, can someone tell me how can I get OpenOffice
> executing into the windows service ?
>
> Thank you in advance
> Simone
>
|