| | |
how to get the name and instance id of an application using java
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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.)
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
----------------------------------------------
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
•
•
•
•
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.)
try writing code in the most stupid way and debugging will be easy...
maybe later
![]() |
Similar Threads
- how to get the instance id of an application (Java)
- desktop application concerning innerclass (Java)
- Java Problem with running program (Java)
- Classpath (Java)
- Can any one help me with java application (Java)
- Java practice questions (Java)
- Want to use radio button or menu bar instead of combo box (Java)
- Help with Java programming for lottery (Java)
- Help with Java Threads (Java)
Other Threads in the Java Forum
- Previous Thread: threads urgent
- Next Thread: use of Context objects
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary bluetooth character chat class classes client code component consumer csv database desktop draw eclipse error event exception fractal ftp game givemetehcodez graphics gui html ide image input integer j2me japplet java javaarraylist javac javaee javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie objects online oracle oriented panel print printf problem program programming project projects properties recursion replaydirector reporting researchinmotion robot rotatetext rsa scanner screen se server set size sms sort sql string swing template test threads time tree ubuntu update windows






