Openoffice problem

I have written a program, in which i use openoffice to mail merge,,,,

However, i get a problem that whenever i run the program , i have to go to

the "windows task manager>>Processes" and manually end two processes, namely

soffice.bin and soffice.exe

Is there any way that i avoid this,or if i can delete these processes from my code itself,when i exit the application?

However, i would prefer to surpass it, rather than ending this process,,if it would work.

It would be a great help,coz im stuck with this problem,

Thanx in advance

[582 byte] By [sun_java_helpa] at [2007-11-27 11:46:31]
# 1

Why do you have to delete them? They are processes that are left running by OOo when the OOo application ends, and will be terminated when Windows terminates.

You could use Java's Runtime or ProcessBuilder classes to execute correctly formatted tasklist and taskkill commands. (This would restrict Java's portability.)

ChuckBinga at 2007-7-29 18:08:01 > top of Java-index,Java Essentials,Java Programming...
# 2

well i have to end these processes,as if these processes are running they dont allow openoffice to open in my application, as in all the menus are disabled, and i cant make any changes in the document.

and whenever i run my program after ending the mentioned processes,everything works fine for me.

And to be true, i dnt know why is it happening

sun_java_helpa at 2007-7-29 18:08:01 > top of Java-index,Java Essentials,Java Programming...
# 3

Sounds like a problem that might be answered by posting it to the OOo mailing list at the OOo website, it doesn't appear to involve Java.

ChuckBinga at 2007-7-29 18:08:01 > top of Java-index,Java Essentials,Java Programming...