String[] args = {"C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe","Path\To\my\File"}; Runtime.getRuntime().exec(args);