Here you can find the source of execute1(final String appPath)
private static void execute1(final String appPath) throws IOException, SecurityException, NullPointerException, IllegalArgumentException
//package com.java2s; //License from project: Open Source License import java.io.IOException; public class Main { private static void execute1(final String appPath) throws IOException, SecurityException, NullPointerException, IllegalArgumentException { Runtime runtime = Runtime.getRuntime(); runtime.exec("rundll32 url.dll,FileProtocolHandler \"" + appPath + "\""); }//ww w .j av a 2s. co m }