I'm writing a java program which should work only if one other program is running and not running in background is there any way to check it?
Asked
Active
Viewed 100 times
0
-
Do you own both programs? If so, consider having each open a socket and talk to each other. – bradimus Jul 21 '16 at 14:09
-
Maybe this gives a starting point: http://crunchify.com/how-to-get-a-list-of-current-open-processes-with-java/ – GhostCat Jul 21 '16 at 14:09
-
Probable this post answer your question: http://stackoverflow.com/questions/19005410/check-if-some-exe-program-is-running-on-the-windows – Ricardo Machado Roque Jul 21 '16 at 14:11
-
i only own on of these programms – Hubert Badocha Jul 21 '16 at 14:31