Java exec executeServer()

Here you can find the source of executeServer()

Description

execute Server

License

Open Source License

Declaration

public static void executeServer() throws IOException 

Method Source Code

//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*/
}

Related

  1. executeProcess(final File workDir, final String... termArray)
  2. executeProcess(final String[] cmds)
  3. executeProcess(String command)
  4. executeProcessAndGetOutputAsStringList(final String command)
  5. executePUT(DataInputStream sockInp, DataOutputStream sockOutp)
  6. executeShellCmdAndReturn(String cmd)
  7. executeShellCommand(String command)
  8. executeShellCommand(String command)
  9. executeShellCommand(String command, File dir)