Here you can find the source of executeServer()
public static void executeServer() throws IOException
//package com.java2s; //License from project: Open Source License import java.io.IOException; public class Main { public static void executeServer() throws IOException { String command = "cmd /C start" + System.getProperty("usr.dir") + "//src//test//java//config//run_test.bat"; Runtime rt = Runtime.getRuntime(); Process pr = rt.exec(command); }/*from www.j a v a 2 s . c o m*/ }