The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
May 2000

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:

finding where netscape is using java

Posted by sudharama on April 17, 2001 at 8:12 AM

hello,
i am developing a tool with GUI having a button when i click on that button a
html file should open i am using the command
Runtime.getRuntime().exec("netscape.exe ex.html");
i am able to get the output because i have set the path of netscape.exe in start->settings->
control panel->system->environmentvariables..
and starting a new dos-prompt.
how does the program execute when i provide my tool to other systems..i cannot ask each and everybody to set their path..and
start a new cmd prompt..i am not able to get the output if i try
Runtime.getRuntime().exec("cmd.exe /c start netscape.exe ex.html");
Please tell me if i can find by any means where the netscape.exe file is there in the system,set the path and then use it..

or
how the above problem of opening a html file by clicking on a button be solved if the tool(GUI) is installed on any machine
sudha




Replies:

Sponsored Links



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