Here you can find the source of execute2(final String appPath)
private static boolean execute2(final String appPath)
//package com.java2s; //License from project: Open Source License import java.io.IOException; public class Main { private static boolean execute2(final String appPath) { try {//from www . ja va 2 s . c o m Runtime runtime = Runtime.getRuntime(); runtime.exec(appPath); } catch (IOException | SecurityException | NullPointerException | IllegalArgumentException e) { e.printStackTrace(); return false; } return true; } }