title: java.awt.Desktop.browse returns "The requested lookup key was not found in any active activation context" only on Win XP
body: <p>I use the following code to access the default browser from java when a button is clicked:</p>
  
  <pre class="lang-java prettyprint-override"><code>if( !java.awt.Desktop.isDesktopSupported() ) {
      System.err.println( "Desktop is not supported (fatal)" );
  }
  java.awt.Desktop desktop = java.awt.Desktop.getDesktop();
  
  if( !desktop.isSupported( java.awt.Desktop.Action.BROWSE ) ) {
      System.err.println( "Desktop doesn't support the browse action (fatal)" );
  }
  
  String number = txtInCall.getText();
  
  String uriString = "http://localwebserver/new?number="+number;
  //number only contains numbers similar to 023456789
  try {
      java.net.URI uri = new java.net.URI( uriString );
      desktop.browse( uri );
  }
  catch ( Exception ex ) {
      System.err.println( ex.getMessage() );
  }
  </code></pre>
  
  <p>The programm works well on Windows 7 Home Premium x64. If I test it on Windows XP Professional x32 SP3 the console returns: "The requested lookup key was not found in any active activation context".</p>
  
  <p>I googled about it and found out, that the error occurs in connection with Internet Explore. The default browser on the tested machines howerer is Mozilla Firefox 6.0.2. I also checked the registry and the http-protocol is registered for firefox.exe and I updated IE.</p>
  
  <p><a href="https://stackoverflow.com/questions/6257049/java-desktop-browse-occasionally-returning-requested-lookup-key-not-found-in-any">The other question about this error</a> did not help me either. On the XP machine a click always returns the mentioned error.</p>