aspose file tools*
The moose likes Beginning Java and the fly likes dos output Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "dos output" Watch "dos output" New topic
Author

dos output

Forrest Xu
Ranch Hand

Joined: Nov 16, 2002
Posts: 92
Hi,
When I run java executable file in Windows, A DOS output windows will pop up. Can we RUN java executable file without DOS output windows by adding some configuration?
Thanks
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2848
    
  11

Use javaw instead of java to run the application.
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
An other approch is redirect the output to a file.
Example : java TestProgram >> out.txt
Here the output will be printed in out.txt file.
One useful thing about this approch is it will be useful to trace in case of exceptions.
-arun


Sharing is learning
Mike
Greenhorn

Joined: Dec 13, 2002
Posts: 4
Originally posted by Arun Boraiah:
An other approch is redirect the output to a file.
Example : java TestProgram >> out.txt
Here the output will be printed in out.txt file.
One useful thing about this approch is it will be useful to trace in case of exceptions.
-arun

I don't understand the purpose of the javaw command. IT DOESN'T GIVE OUTPUT!!!
My questions is, what is the purpose of javaw?
Thanks
M.S.
Martin Clifford
Greenhorn

Joined: Dec 02, 2002
Posts: 23
If your program is supposed to give output to the console window (DOS Prompt, et al.), then use Java to start the program. If it's a GUI application, then you can use Java or Javaw to start the program.
At least as far as I'm aware.


Martin
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
The java and javaw Documentation


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dos output