The Artima Developer Community
Sponsored Link

Java Answers Forum
Intermittent problem launching default browser

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Julius Malixi

Posts: 6
Nickname: jmalixi
Registered: Dec, 2003

Intermittent problem launching default browser Posted: Jan 14, 2004 8:13 PM
Reply to this message Reply
Advertisement
I'm using the following code to launch a default browser in my application:

String urlLaunch = "http://www.artima.com";
Process proc = Runtime.getRuntime().exec("cmd.exe /c start " + urlLaunch);

It works most of the time, but there are times when the browser opens up but doesn't link to my URL. It kind of freezes up with blank fields/pages in the browser. Anybody have any ideas?

If there's a better way to launch a default browser in Windows, I'd like to hear them.

Thanks.

Topic: check if input is String? Previous Topic   Next Topic Topic: Can't get my subwindows to show up

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use