To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=66196





------- Additional comments from [EMAIL PROTECTED] Tue Jun 13 01:29:42 -0700 
2006 -------
I have a workaround that might be integrated:
-----%<-----
public class OOComNG extends Thread{
    
    protected XComponentContext xRemoteContext = null; 

    public OOComNG (String threadName) {
        super(threadName);
    }
    
    /**
     * This method checks for a running OpenOffice instance. If none is alive
     * OOComNG exits.
     */
    public void run() {
        try {
            sleep(15000);
            if(xRemoteContext == null) {
                System.out.println("Found only a frozen OpenOffice. " +
                        "Please kill all OOo instances and call me again. " +
                        "Goodbye.");
                System.exit(201);
            }
        } catch (InterruptedException e) {}
    }
    
    /**
     * This method bootstraps a OpenOffice and returns it's Desktop.
     */
    private void bootstrapOpenOffice()
    {
        try
        {
            // Connect or start a OpenOffice instance
            xRemoteContext = Bootstrap.bootstrap();
        }
        catch (BootstrapException e)
        {
            System.out.println("Unable to start OpenOffice. Starter says:");
            System.out.println(e.getLocalizedMessage());
        }
    }
}

public class OOCom {

    public static void main(String[] args){
        OOComNG myServer = new OOComNG("myThread");
        // Watch the bootstrap process: watch thread started
        myServer.start();
            
        // Start OO, if a port is given, it connects to the OO instance
        myServer.bootstrapOpenOffice();
    }
}
-----%<-----
Greetings, Tobias

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to