In a private message, you wrote:
Ok i wil correct my question.
- go to control panel
- go to Administrative tools
- double click on services
In this window there is a column by name Status. I want to write a java application which pops up a message when the status gets changed.
I think i need to interact with the operating system threads to implement this. So i need some guidance on interacting with the Windows os from the java program.
Thank you.
Please
UseTheForumNotEmail. So, as I said, you're either going to need to use
native methods -- code in C++ or some other native language, linked to Java -- or you're going to need to execute some external program. Most likely, to get notifications, it's native methods that you'll want to use. The Java Native Interface (JNI) is described, for example,
here. You'll need to find out how to do what you need in the Win32 API, write the code in C/C++, then use the JNI to call it from Java.