Results 1 to 2 of 2
  1. #1
    mpiaser is offline Member
    Join Date
    Dec 2007
    Rep Power

    Default Check if Windows application is already open

    I need to create a client side script which can test if a specific windows application is already running and display a message box if it is running. Can this be done via Java?

  2. #2
    Programmist is offline Member
    Join Date
    Nov 2007
    Rep Power


    As far as I know there is no pure Java way of doing this. You will probably need to look into JNI. You might also be able to use Runtime.getRuntime().execute(String cmd) to call some system command that will return a list of process. Then you can parse the list for the process you want. On unix, the command is "ps", but on Windows I'm not sure.

Similar Threads

  1. Java Application Interface similar with Windows Themes
    By Heracles Choe in forum AWT / Swing
    Replies: 9
    Last Post: 05-02-2008, 04:47 AM
  2. Can someone check my code
    By joz_12345 in forum Java 2D
    Replies: 7
    Last Post: 02-18-2008, 03:58 AM
  3. spell check
    By kazitula in forum Java Applets
    Replies: 2
    Last Post: 12-20-2007, 12:37 PM
  4. swt for windows
    By Gajesh Tripathi in forum SWT / JFace
    Replies: 2
    Last Post: 10-18-2007, 07:43 AM
  5. First windows application
    By tha_crazy in forum New To Java
    Replies: 1
    Last Post: 08-13-2007, 04:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts