following is the code that i have for running the exec:
// cmd = 'rundll32 url.dll,FileProtocolHandler http://...'
cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
Process p = Runtime.getRuntime().exec(cmd);
// couldn't exec browser
System.err.println("Could not invoke browser, command=" + cmd);
System.err.println("Caught: " + x);
but whenever i try to print something out in the catch block then the program doesnt doesnt print anything..thats probably bcoz its not executing the catch block bcoz there are no exceptions generated,but suppose for some reason the executable file is not present in the dir in which the program expects it to be,what happens in such a situation.i have tried this situation and what happens in this case is that a small window pops up saying that "cannot open filename.exe",but no exception is generated.
please tell me as to how can i catch an exception that is generated when the executable is not present in the dir or for some reason it fails to start.would appreciate your help a lot..
thanks a lot