Im writing an application. There the app has to open firefox when certain req are met. I did a small research. All i can find is the following code.
Runtime rt = null;
rt = Runtime.getRuntime();
try {
rt.exec("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe google.com");
} catch (IOException e) {
e.printStackTrace();
}
What i want to know is that is that any method to open a specific application without giving the path because all users wont install the application in same path. So like searching with the name only. Please help. Thanks in advance.