Java exec execute1(final String appPath)

Here you can find the source of execute1(final String appPath)

Description

execute

License

Open Source License

Declaration

private static void execute1(final String appPath)
            throws IOException, SecurityException, NullPointerException, IllegalArgumentException 

Method Source Code

//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
}

Related

  1. execute(String... commands)
  2. execute(String[] _command, String _workingDir)
  3. execute(String[] command, File directory, String[] env)
  4. execute(String[] commandArray)
  5. execute(Template template, Map rootMap)
  6. execute2(final String appPath)
  7. executeAndWait(String command)
  8. executeApplication(String filePath)
  9. executeBashScriptWithParams(ArrayList script)