Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Prevent some Java programs from showing in the dock System
Even when a Java program doesn't display any windows or other visible elements, if it accesses the AWT subsystem in some way (e.g., to do image processing internally), OS X will still put an icon for the Java program in the dock as if it were a GUI-based app. (When the program quits, the dock icon goes away as usual.)

Because of this behavior, even console-based Java programs sometimes have icons show up in the dock. This is most noticeable in apps like Eclipse that launch console-based Java programs for background processing. Dock icons will sporadically bounce into view and then disappear as the Java programs are launched. It's very distracting, and it's not how Java behaves on other platforms.

Although there doesn't seem to be any global fix for this problem, one solution can be applied on a per-app basis. You will need to modify the command that launches the Java program so that the java.awt.headless system property is set to true. For example:
java -Djava.awt.headless=true ...
If you have access to the source code of the program, you can also turn on headless mode programmatically.
    •    
  • Currently 2.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[7,759 views]  

Prevent some Java programs from showing in the dock | 2 comments | Create New Account
Click here to return to the 'Prevent some Java programs from showing in the dock' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Prevent some Java programs from showing in the dock
Authored by: MohsanKhan on Dec 19, '07 03:24:32PM

Cool, thanks. I had no idea!



[ Reply to This | # ]
Prevent some Java programs from showing in the dock
Authored by: ZZamboni on Dec 20, '07 03:14:47PM
Just to give credit where credit is due, this hint is an almost-verbatim summarization of this thread at Apple forums.

[ Reply to This | # ]