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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top