Runtime.getRuntime().exec(), hide the console screen

Discussion in 'Java' started by Krisp, Feb 28, 2009.

  1. Krisp

    Krisp Guest

    Hi All,

    When i start my app through java using
    Runtime.getRuntime().exec(cmd);

    cmd contains the command line for starting the exe app

    There is a black screen that comes in the background showing the
    console of the launched app.

    is there any way by which i can hide the console?

    Thanks,
    Krisp
     
    Krisp, Feb 28, 2009
    #1
    1. Advertising

  2. Krisp wrote on 28.02.2009 08:50:
    > Hi All,
    >
    > When i start my app through java using
    > Runtime.getRuntime().exec(cmd);
    >
    > cmd contains the command line for starting the exe app
    >
    > There is a black screen that comes in the background showing the
    > console of the launched app.
    >
    > is there any way by which i can hide the console?


    How does "cmd" look like?

    If you are on Windows just use javaw.exe instead of java.exe that will remove
    the console.

    Thomas
     
    Thomas Kellerer, Feb 28, 2009
    #2
    1. Advertising

  3. Krisp

    Daniel Pitts Guest

    Krisp wrote:
    > Hi All,
    >
    > When i start my app through java using
    > Runtime.getRuntime().exec(cmd);
    >
    > cmd contains the command line for starting the exe app
    >
    > There is a black screen that comes in the background showing the
    > console of the launched app.
    >
    > is there any way by which i can hide the console?
    >
    > Thanks,
    > Krisp

    cmd *is* the console. Perhaps you mean to run something else?

    --
    Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
     
    Daniel Pitts, Mar 1, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Zsolt Koppany
    Replies:
    2
    Views:
    7,127
    SaintMagoo
    Mar 5, 2011
  2. MARTIN Herve \(EXT\)
    Replies:
    1
    Views:
    1,462
    Anthony Borla
    Nov 27, 2003
  3. paul brown
    Replies:
    3
    Views:
    5,563
    deepa gr
    Feb 17, 2009
  4. Andrew Regan

    Runtime.getRuntime().exec() ??

    Andrew Regan, Jun 28, 2004, in forum: Java
    Replies:
    3
    Views:
    898
    Yu SONG
    Jun 30, 2004
  5. Replies:
    2
    Views:
    2,907
    Roedy Green
    Sep 20, 2005
Loading...

Share This Page