Reputation:
I need to start a jar file with a *.bat file so that as it executes the Java command, it detaches from the terminal window (command prompt) and does not block the rest of the script. Is this possible? If so, how?
Thanks!
Upvotes: 6
Views: 9312
Reputation:
java.exe will always display a terminal window, you need to use javaw.exe instead:
start javaw -jar myjarfile.jar
Upvotes: 10