Process proc= null; try { proc = Runtime.getRuntime().exec(application's full path); if (proc.waitFor() != 0) { /* error occurs */ System.err.println("exit value = " + proc.exitValue()); } } catch (IOException e) { e.printStackTrace(); } catch (InterruptedException e) { System.err.println(e); }