在运行时进程中执行 'start'

Executing 'start' in runtime process

我正在尝试通过 java 代码启动 Steam 应用程序。

首先,我必须想出一种使用 cmd 打开它的方法,这很简单,我只需输入 start steam://rungameid/xxx

现在,我需要 java 程序来打开应用程序

这是我目前尝试过的方法。

Runtime.getRuntime().exec("start steam://rungameid/xxx");

new ProcessBuilder("start", "steam://rungameid/xxx").start()

它们都导致了 IOException

Exception in thread "main" java.io.IOException: Cannot run program "start": CreateProcess error=2, The system cannot find the file specified

我不知道如何解决这个问题,所以我只需要帮助。

Runtime.getRuntime().exec("cmd.exe /C start steam://rungameid/xxx"");      

问题是找不到如何运行开始。