Execute shell command in Java?

Si
- in Servers
2

I want to link my Discord Bot to a Minecraft server and start the Minecraft server via Discord Bot is there any way?

The bot is written in Java, by the way

Ap

Can't your bot just run the startup file?

or

Runtime.getRuntime (). Exec ("C: \\ Program Files \\ folder \\ file.exe");

You always have to make sure to do double backslashes so that Java does not recognize them as an escape character.