how to get the name and instance id of an application using java

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2007
Posts: 85
Reputation: hidash_in has a little shameless behaviour in the past 
Solved Threads: 0
hidash_in's Avatar
hidash_in hidash_in is offline Offline
Junior Poster in Training

how to get the name and instance id of an application using java

 
0
  #1
Jan 28th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,433
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 260
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: how to get the name and instance id of an application using java

 
0
  #2
Jan 28th, 2008
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.)
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 17
Reputation: p.bondam is an unknown quantity at this point 
Solved Threads: 0
p.bondam's Avatar
p.bondam p.bondam is offline Offline
Newbie Poster

Re: how to get the name and instance id of an application using java

 
0
  #3
Jan 28th, 2008
Originally Posted by masijade View Post
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...
maybe later
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC