File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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?
Running jar files on linux
problem starting up tomcat
Hiding Command Console Window while using appletviewer
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014