hi everybody,
i am trying to get the name and id of the opened application to check whether the application is opened properly or not using java

Recommended Answers

All 2 Replies

An "application" does not have an "instance id". It has a "process id" though. If that is what you mean then you will have to use Runtime.exec() to set of a "ps" command (or the OS specific equivalent as ps is a Unix/Linx command).

IOW, this is not the sort of thing Java was meant for. (As you've been told before.)

An "application" does not have an "instance id". It has a "process id" though. If that is what you mean then you will have to use Runtime.exec() to set of a "ps" command (or the OS specific equivalent as ps is a Unix/Linx command).

IOW, this is not the sort of thing Java was meant for. (As you've been told before.)

in addition to the Kernighan quote:

try writing code in the most stupid way and debugging will be easy...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.