File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Suppressing window when running java.exe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Suppressing window when running java.exe" Watch "Suppressing window when running java.exe" New topic
Author

Suppressing window when running java.exe

Richard Muller
Greenhorn

Joined: May 05, 2002
Posts: 14
I wrote a Windows executable that gets launched by double-clicking the name of java source program. My executable invokes java.exe with suitable parameters to cause the execution of DrJava.exe loaded with the content of the java file whose name was double-clicked.
My executable runs with a hidden window. By java.exe creates a Command window that serves no useful purpose in this app. Is there a simple way to suppress the creation of this Command window. Java.exe help does not indicate any option to cause it to run "silently".
The generated window's caption contains the fully qualified name of jave.exe. I guess I could get my app to search for that window and, when found, send it ShowWindow/Hide message. Any other idea?
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Use javaw instead of java.
Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Suppressing window when running java.exe