what's wrong with Netscape4.7 or something else?
Hi all,
in my application, i used some code to launch browser(in Solaris):
String browser= "netscape";
String url = "";// which passed from the GUI
Process process = Runtime.getRuntime().exec("netscape -remote 'openURL(url)'")
int exitCode = process.waitFor();
if (exitCode != 0) {// if Netscape was not open
Runtime.getRuntime().exec(new String[] { (String) browser, url });
}
when there is no netscape running, i can bring a new netscape window, but if there is a netscape window running, and when i click a link in my application (for example a menu item for "help home"), it can only bring the existing browser in the top of all windows but without changing the content.
is there any problem with the Netscape's option -remote or is there anything wrong with runtime environment?
when i exit the application, keep a netscape window open and type :
netscape -remote 'openURL(some other url)'
it works.
looks like there is difference between typed command in terminal and Runtime.getRuntime().exec();
does anybody have any clue about it?
Thanks for replying!
-Frank

