Correct it as below:
Runtime.getRuntime().exec(“c:\\map.bat”);
(Note the two backward slashes.)
But it is better to create the string using File.separator so that your code will be portable across different operating systems.
Runtime.getRuntime().exec(“c:” + java.io.File.separator + “map.bat”);
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods