Error while establish connection

Hi, I got the error while establish a connection to Libreoffice from sdk.(Handle is not initialized.)

private XMultiServiceFactory Connect()
{                
    m_xContext = uno.util.Bootstrap.bootstrap(); // This line causing the errro
    return (XMultiServiceFactory)m_xContext.getServiceManager();
}

Try declaring m_xContext with the full path:

com.sun.star.uno.XComponentContext m_xContext;