| View previous topic :: View next topic |
| Author |
Message |
prakash General User

Joined: 27 May 2004 Posts: 32
|
Posted: Tue Jul 06, 2004 2:25 am Post subject: how to kill 00 server |
|
|
how do u terminate OO server from java API? i know there is one desktop.
terminate() method? Does it always work?
Second i tried with java Runtime class to start OO and
Process. destroy( ) to terminate 00 , but it doesnt work.
is there any other way do the same?
thanks!! |
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Tue Jul 06, 2004 6:41 am Post subject: |
|
|
Yes you should terminate() the com.sun.star.frame.Desktop service by querying the appropriate interface (XDesktop here).
As far as I know it doesn't always work to kill the soffice process with this command.
If you have the Jacob package for Java you can try it via COM, in case you're running on Windows.
I found out that it did always work (the terminate() method) when I connected to OOo via COM (COM-UNO Bridge) and OLE Automation.
Hope that helps.
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
pasha_golub General User


Joined: 29 Jun 2004 Posts: 24 Location: Ukraine
|
Posted: Wed Jul 07, 2004 12:32 am Post subject: |
|
|
| Cybb20 wrote: | Yes you should terminate() the com.sun.star.frame.Desktop service by querying the appropriate interface (XDesktop here).
As far as I know it doesn't always work to kill the soffice process with this command.
If you have the Jacob package for Java you can try it via COM, in case you're running on Windows.
I found out that it did always work (the terminate() method) when I connected to OOo via COM (COM-UNO Bridge) and OLE Automation.
|
This is my code in Delphi:
| Code: |
StarOffice := CreateOleObject('com.sun.star.ServiceManager');
StarDesktop := StarOffice.createInstance('com.sun.star.frame.Desktop');
.... //do work
StarDesktop.Terminate; //in this line I have Access Violation and abnormal termination of soffice.exe proccess with OS error message:"The application performed an illegal operation and must be shut down" :(
|
_________________ Nullus est in vitae sensus, ipsa vera est sensus! |
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Wed Jul 07, 2004 6:06 am Post subject: |
|
|
the question is what you did with OOo when you tried to terminate it.
If you didn't do anything, then I don't know why you get this exception. _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
|