Skip to main content

Running glassfish with JVM otion -Djava.awt.headless=false

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
jscoobyced
Offline
Joined: 2009-03-23

Hi,

I am creating barcodes in my application running Glassfish 3.1.1. I am using Barbecue 1.5 and unfortunately this requires a non-headless application. I have added the JVM setting:
-Djava.awt.headless=false

and so far things look ok. But before going to prod I want to make sure there is no risk. So here are my questions:
- what are the drawback of running non-headless? More memory/cpu usage?
- is it possible to run with this "-Djava.awt.headless=false" on a server that as no display or must I install Xvfb?