Java exec execute2(final String appPath)

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

Description

execute

License

Open Source License

Declaration

private static boolean execute2(final String appPath) 

Method Source Code

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

Related

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