OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

quick start is enabled. How I know when the thread finishes?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
xaviercons
Newbie
Newbie


Joined: 29 May 2012
Posts: 1

PostPosted: Tue May 29, 2012 8:51 am    Post subject: quick start is enabled. How I know when the thread finishes? Reply with quote

When I run "localc" from java, I call waitfor() to know when the spreadsheet closes.
It works when QuickStart is disabled, but when quickStart is enabled waitfor() does not work (it returns immediately even if the spreadsheet is still opening).

Code:
       
       String command[] = new String[2]; 
       command[0] = /usr/bin/localc; 
       command[1] = my_file; 
       Process p = Runtime.getRuntime().exec(command); 
       try { p.waitFor(); } catch (InterruptedException ie) { } 



I think this happens because QuickStart uses a different process to run localc, but I don't know how this work.

Is there any way of knowing when the user closes the spreadsheet (from java)? even if the QuickStart is enabled?

I appreciate any help .

Many thanks.[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> General Discussion All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group