Is there any smart way to launch the chrome browser from a java class? I\'m asking because I would like a smart way to launch an application that required a chrome browser o
You can execute chrome.exe like this:
chrome.exe
try { Process p = Runtime.getRuntime().exec("\"/Program Files (x86)/Google/Chrome/Application/chrome.exe\""); p.waitFor(); System.out.println("Google Chrome launched!"); } catch (Exception e) { e.printStackTrace(); }
Provided you know where Chrome is installed.