xaviercons Newbie

Joined: 29 May 2012 Posts: 1
|
Posted: Tue May 29, 2012 8:51 am Post subject: quick start is enabled. How I know when the thread finishes? |
|
|
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] |
|