Anyone knows how I can automatically start a java server in batch file when it stops running?
I have the following batch file below but it only starts the server.
//test.bat
start java -jar myserver.jar
Anyone knows how I can automatically start a java server in batch file when it stops running?
I have the following batch file below but it only starts the server.
//test.bat
start java -jar myserver.jar
You can use everyone's favorite, goto:
:loop
java -jar myserver.jar
goto loop