title: Unable to start a Bloomberg session
body: <p>I'm currently trying to connect to the <a href="http://www.openbloomberg.com/open-api/">Bloomberg API</a> but after trying for a day still not able to get it running.</p>
  
  <p>Below is sample code from the API Guide, the part where I keep getting "Could not start session." when trying to connect.</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
      SessionOptions sessionOptions = new SessionOptions();  
      sessionOptions.setServerHost("localhost"); // default value 
      sessionOptions.setServerPort(8194); // default value
      Session session = new Session(sessionOptions);
      if (!session.start()) {
          System.out.println("Could not start session.");
          System.exit(1);
      }
      if (!session.openService("//blp/refdata")) {
          System.out.println("Could not open service " +
                             "//blp/refdata");
          System.exit(1);
      }
  }
  </code></pre>
  
  <p>I also tried the async example available in the guide, but no luck as well.</p>
  
  <p>Is there anything that I missed in order to use the API? Or if I have to apply for an account in order to use the API, please do let me know :)</p>