// Assume that we're on Unix and that Netscape (actually Firefox) is installed
// First, attempt to open the URL in a currently running session of Netscape
- process = Runtime.getRuntime().exec(new String[] { (String) browser,
+
+ // JBPNote log debug
+ /* System.out.println("Executing : "+browser+" "+
+ NETSCAPE_REMOTE_PARAMETER+" "+
+ NETSCAPE_OPEN_PARAMETER_START +
+ url +
+ NETSCAPE_OPEN_NEW_WINDOW +
+ NETSCAPE_OPEN_PARAMETER_END);
+ */
+ process = Runtime.getRuntime().exec(new String[] { (String) browser,
NETSCAPE_REMOTE_PARAMETER,
NETSCAPE_OPEN_PARAMETER_START +
url +
try {
int exitCode = process.waitFor();
if (exitCode != 0) { // if Netscape was not open
- Runtime.getRuntime().exec(new String[] { (String) browser, url });
+ // JBPNote log debug
+ // System.out.println("Executing : "+browser+" "+url+"\n");
+ Runtime.getRuntime().exec(new String[] { (String) browser, url });
}
} catch (InterruptedException ie) {
throw new IOException("InterruptedException while launching browser: " + ie.getMessage());