Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Batch File That Starts Java VM Exits - Java App Still Running

807588Mar 12 2009 — edited Mar 17 2009
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 14 2009
Added on Mar 12 2009
2 comments
500 views