FYI: If you’re developing a Java web application using Tomcat on Mac OS X and you see:
org.apache.catalina.startup.Bootstrap
appearing in the dock, you need to add:
export JAVA_OPTS="-Djava.awt.headless=true"
to your startup script.
Source:
· Installing Tomcat on OS X
· Decapitating java.awt
So what if you are seeing this on your desktop and you are not developing a Java web application using Tomcat (or anything else)? What is the fix?
Finally….
Thanks
Regards
Excuse my ignorance, but when you say “add to my startup script” which script is that exactly? Is it startup.sh or catalina.sh or something else? And where in the script should it be added?
thank you, quite annoying little thing 🙂
i know that is an old post…but i have a problem: i use a jframe so i can’t set headless to true, or i catch an headlessexception. now if i print this printerjob on mac my printer give me a blank page, meanwhile if i set the visibility on the frame i can see that it’s well formed! what can i do?
Hi everyone, I have the 10.7.2 version on Mac using Lion and is not working for me 🙁
Same here (but Mountain Lion). Any ideas?