How to monitor a Windows process and send an alert when it crashes or closes?

Solution 1:

:begin
tasklist | find "java.exe"
IF %ERRORLEVEL% EQU 1  blat.exe ---
sleep 10
goto :begin

you'll need blat.exe which is the most used tool for sending mails via batch scripts sleep should be built-in windows 7. But this will work only if you have only one java.exe running... You can use some external tools to start a process and its PID for maximum usability