How to run JAR in a separate window with a .bat script?

I need to run a jar file with a * .bat file so that when executing a Java command, it comes off the terminal window (command line) and does not block the rest of the script. Is it possible? If so, how?

Thanks!

+6
source share
2 answers

java.exe will always display a terminal window, instead you need to use javaw.exe:

start javaw -jar myjarfile.jar 
+10
source
  start / B java -jar myjarfile.jar 
+1
source

Source: https://habr.com/ru/post/886393/


All Articles