• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Suppressing window when running java.exe

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use javaw instead of java.
Michael Morris
 
reply
    Bookmark Topic Watch Topic
  • New Topic