Java exec executeApplication(String filePath)

Here you can find the source of executeApplication(String filePath)

Description

execute Application

License

Apache License

Declaration

private static void executeApplication(String filePath) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.IOException;

public class Main {
    private static void executeApplication(String filePath) throws IOException {
        ProcessBuilder processBuilder = new ProcessBuilder();
        processBuilder.command("java", "-jar", filePath);
        processBuilder.start();//from   ww  w  . j av a 2 s . com
    }
}

Related

  1. execute(String[] commandArray)
  2. execute(Template template, Map rootMap)
  3. execute1(final String appPath)
  4. execute2(final String appPath)
  5. executeAndWait(String command)
  6. executeBashScriptWithParams(ArrayList script)
  7. executeBatFile(String batFile)
  8. executeCD(String dirPath)
  9. executeCmdCommand(String command)