how to close standford.exe in cmd after I open it ?? java : I open the cmd.exe by using following statement:
 
   public static void runStanfordCMD() throws IOException{
            
    		List<String> cmds = Arrays.asList("cmd.exe", "/C", "start", "java", "-mx4g", "-cp", "*", "edu.stanford.nlp.pipeline.StanfordCoreNLPServer");
    	    ProcessBuilder builder = new ProcessBuilder(cmds);
    	    builder.directory(new File("D:/Desktop/stanford-corenlp-full-2015-12-09"));
    	    Process proc = builder.start();
    	 
    	}


so how to close the cmd.exe after I finished some process??

how to write the statement according to my case??

    public static void closeStanfordCMD() throws IOException{
    		  try {
    	      
    	         
    	            Runtime.getRuntime().exec("command.exe  /C" + "Your command");  ??????how to write the statement???
    	            
    	        } catch (Exception e) {
    	            e.printStackTrace();  
    	        }
    		
    	}

