私は他のアプリケーションを実行できるようにJavaでアプリを書いています。そのために、Processクラスオブジェクトを使用しましたが、使用すると、アプリはプロセスが終了するのを待ってから終了します。Javaで外部アプリケーションを実行する方法はありますが、終了するのを待ちませんか?
public static void main(String[] args)
{
FastAppManager appManager = new FastAppManager();
appManager.startFastApp("notepad");
}
public void startFastApp(String name) throws IOException
{
Process process = new ProcessBuilder(name).start();
}