プロジェクト

全般

プロフィール

ダウンロード (416 Bytes) 統計
| ブランチ: | タグ: | リビジョン:

github / src / com / mizo0203 / timeline / talker / util / RuntimeUtil.java @ 6a3fcb6d

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