A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
How to stop Executable Jar file using batch file?
Joined: Oct 09, 2004
Jul 29, 2008 06:16:00
I have created 1 batch file named as Start.bat, for running executable jar file. That command looks like
When I run the Start.bat, It's opening and running. That's fine.
But if I want to close that window/ exit that window, What command, I have to use.
Thank You<br />Edward
Joined: Dec 22, 2004
Jul 29, 2008 06:30:00
There are several options here:
1. Close the window and call System.exit() in the jar file
2. Press Ctrl-C in the command prompt the batch is running in
3. Close the command prompt the batch is running in
Hope that helps.
I agree. Here's the link:
subject: How to stop Executable Jar file using batch file?
Hiding Command Console Window while using appletviewer
problem starting up tomcat
Running jar files on linux
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015