I have a jar that I'm running on a windows server that I ran using java -jar filename.jar and i closed the terminal window. I then ran the other jar using the command javaw -jar filename.jar and closed the terminal window also.
I would like to check if both of them are running and if possible see the logs on the terminal.
I have tried running the command wmic process where "name like '%java%'" get commandline,processid but i do not understand the result.