Start & Stop Runnable Jar file without CMD
Hi! To start and stop the runnable jar file in CMD is little bit complex if you are not use UI. In this chapter i will show you how to start and stop runnable Jar file by using bat files. we need to create 3 bat files as follow start.bat --> which carrying command to start the jar file stop.bat --> which carrying command to stop the jar file run.bat --> which can control the jar file start.bat please open the notepad, copy and paste the below commands and save as start.bat @ECHO OFF call run.bat start stop.bat please open the notepad, copy and paste the below commands and save as stop.bat @ECHO OFF call run.bat stop run.bat The run.bat file contains the information about your jar file. Please replace "nameofyourjar" into your jar file name wherever you find. @ECHO OFF IF "%1"=="start" ( ECHO start nameofyourjar start "nameofyourjar" java -jar -Dspring.profiles.active=prod nameofyourjar.ja