malteser
malteser

Reputation: 485

How to stop cmd .bat from closing up -- java jar application

I have this batch file

java -jar evac.jar

which runs a java console application. It works, but when it's done it auto-closes, thus proving pointless to me.

How would I stop it from closing after execution so that I could analyze my data

Upvotes: 0

Views: 3181

Answers (1)

Michael Cornel
Michael Cornel

Reputation: 4004

You could append

pause

to your batch file which will wait for a keystroke before closing.

Upvotes: 4

Related Questions