[jboss-as7-dev] Changed arguments…can we do better ? :P

Max Rydahl Andersen max.andersen at redhat.com
Wed Feb 1 12:52:25 EST 2012


On Feb 1, 2012, at 18:12, Jason T. Greene wrote:

> On 2/1/12 5:38 AM, Max Rydahl Andersen wrote:
>> Does the -Djava.awt.headless=true have any function besides maybe give a few milliseconds faster startup ?
>> (asking since this prevents you to launch (for debugging purposes) hsqldb admin and other swing based "inspection" tools)
> 
> This was a patch submitted by a user awhile back. The reason is that if an application uses any of the image libraries in AWT (it's pretty common these days to use capthas for exmaple), the JVM will fail if graphics libraries are not installed.

That's a very good reason.

> Since we don't really have a need to launch GUI elements at this point it makes sense to save these users some heartache. As to a database admin thing, we ship H2 for sample usage, and they don't use swing. They provide an admin war though, that we show how to deploy in one of the quick starts.

sure - I was just giving an example and just wanted to understand why its there before we add it to tools.

/max
http://about.me/maxandersen






More information about the jboss-as7-dev mailing list