The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Default Browser

Posted by Mukul on January 22, 2002 at 10:02 PM

> hi all

> How do i find the default browser of a client. I want to invoke a web site from my desktop application.

> ie invoke java.sun.com by clicking a button shold open the default browser of the clinet.

> regards
> Pradheep

rundll32 url.dll,FileProtocolHandler http://www.artima.com

running this command from the command line (I ran on W2K) will open the url in your default browser. You can set it up so that you can execute this command using the exec method of class Runtime.






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us