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

K

Krisp

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
 
T

Thomas Kellerer

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
 
D

Daniel Pitts

Krisp said:
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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top