github / src / com / mizo0203 / timeline / talker / RuntimeUtil.java @ 493ff79f
| 1 | 493ff79f | みぞ@CrazyBeatCoder | package com.mizo0203.timeline.talker; |
|---|---|---|---|
| 2 | df4ee0a0 | みぞ@CrazyBeatCoder | |
| 3 | import java.io.IOException; |
||
| 4 | |||
| 5 | public class RuntimeUtil { |
||
| 6 | |||
| 7 | public static void execute(String[] cmdarray) { |
||
| 8 | try { |
||
| 9 | Process process = Runtime.getRuntime().exec(cmdarray); |
||
| 10 | process.waitFor(); |
||
| 11 | process.destroy(); |
||
| 12 | } catch (IOException | InterruptedException e) { |
||
| 13 | e.printStackTrace(); |
||
| 14 | }
|
||
| 15 | }
|
||
| 16 | |||
| 17 | }
|