These are the windows console commands (click Start-execute-enter "cmd"), which are started by the virtual java machine via Runtime.getRuntime (). Exec (...).
Runtime.getRuntime().exec("cmd /c start cmd.exe");
With this combination of commands, a separate cmd window is launched.
cmd - command interpreter
start - the command to start something in a separate window
C:\Windows\System32>cmd /? ΠΠ°ΠΏΡΡΠΊ Π½ΠΎΠ²ΠΎΠΉ ΠΊΠΎΠΏΠΈΠΈ ΠΈΠ½ΡΠ΅ΡΠΏΡΠ΅ΡΠ°ΡΠΎΡΠ° ΠΊΠΎΠΌΠ°Π½Π΄ Windows. CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF] [[/S] [/C | /K] ΡΡΡΠΎΠΊΠ°] /C ΠΡΠΏΠΎΠ»Π½Π΅Π½ΠΈΠ΅ ΡΠΊΠ°Π·Π°Π½Π½ΠΎΠΉ ΠΊΠΎΠΌΠ°Π½Π΄Ρ (ΡΡΡΠΎΠΊΠΈ) Ρ ΠΏΠΎΡΠ»Π΅Π΄ΡΡΡΠΈΠΌ Π·Π°Π²Π΅ΡΡΠ΅Π½ΠΈΠ΅ΠΌ.
In fact, we do this:
run interpreter cmd
run the start command in it, which will open a separate window cmd
exit cmd
PS If it were supposed that the program in java should be executed not in Windows but for example in Linux, then the commands would be different.