Batch File That Starts Java VM Exits - Java App Still Running
807588Mar 12 2009 — edited Mar 17 2009I have a Windows batch file running on Windows Server 2003 RC2, that starts a small command line utility written in Java 6. Occasionally I need to kill the Windows shell ( cmd.exe ) process to change some parameters and restart the process.
However, 90% of the time the shell closes but the java process continues to run, its usually actively writing to a file when I kill the Windows shell . Its there any way to tie the java process to the shell or am I SOL? It would be nice not to have to manually log into the remote system to kill the java.exe process that represents the java application, but right now I need to do that.
Btw, its remote because a use a process scheduler to kick off the shell that then starts the java application. When I tell the schedule to kill the process, it kills the shell, but not the java process, as explained above.
Thank You,
-TheGooch