How can I execute a Windows batch file as a separate process from Java?-Collection of common programming errors
See this article for how to use Runtime.exec properly.
You probably need to start a new command line window:
Runtime rt = Runtime.getRuntime();
String[] commandArgs = new String[]{"cmd", "/C", "start", "c:\\test.bat" };
Process proc = rt.exec(commandArgs);