Here you can find the source of executeApplication(String filePath)
private static void executeApplication(String filePath) throws IOException
//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 } }