Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
常见问题:是否可以等待应用程序窗口出现直到我继续使用代码?该应用程序由 Java 调用Process/ProcessBuilder。
Process/ProcessBuilder
你可以试试这个:
ProcessBuilder builder = new ProcessBuilder(command); Process shell=builder.start(); shell.waitFor();