The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

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:

Open an HTML file

Posted by Subhadip on April 30, 2001 at 7:53 PM

Hi!

Create a object of the Runtime class and the call runtime.exec(String);

Give the path of the IE or NETSCAPE .exe file and then the file you want to open

Runtime rt = Runtime.getRuntime();
Process pc = rt.exec("c:\ProgramFiles\Netscape\netscape.exe yahoo.html");
pc.waitFor();

> hai everybody

> i want to open an html by clicking java button. how can i open. plese reply me
>
> shajan76@yahoo.com






Replies:

Sponsored Links



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