This is due to Java rather than due to mxmlc, and is an option for the
runtime behaviour of mxmlc, not anything to do with a headless Flash
Player.
By default on Unix systems, a lot of Java graphics libraries expect to
be able to talk to a running X11 server. However, many systems that
run Java apps don't need or require an X11 server; web-servers being a
case in point.
Setting the Java property 'java.awt.headless=true' (which is what the
mxmlc option headless-server=true actually does) essentially tells the
Java VM 'I know I don't have an X11 server running, and I am happy
working with a crippled set of graphics commands as a result'.
This switches the Java VM in to headless mode. In that mode, when Java
instantiates graphics classes (such as classes for working with fonts
and in-memory bitmaps) it no longer tries to connect to an X11 server
and in some cases it chooses to use alternative code or libraries.
Many graphical classes (particularly lots of Swing GUI classes)
_can't_ be used headless, and attempts to do so will throw a
HeadlessException in headless mode.
The reason (I'd imagine) that mxmlc provides this as an option is so
that you can set up server-side compilation with mxmlc, and still get
access to font compilation and so forth (for which Java needs headless
set to true).
I hope that makes some sort of sense!
Ian
On Wed, Aug 20, 2008 at 8:44 AM, Niels Wolf
<[EMAIL PROTECTED]> wrote:
> Hey.
>
> headless-server=true
>
> Can anybody explain me this parameter? It says its for headless servers..
> But isnt mxmlc as a commandline always headless? Or does it mean the swf
> will run on headless servers? But how is that possible? Is there a flash
> player that does not require some sort of X server?
>
> Full comment from the api:
>
> 'Enables the headless implementation of the Flex compiler. This sets the
> following:
> System.setProperty("java.awt.headless", "true")
> The headless setting (java.awt.headless=true) is required to use fonts and
> SVG on UNIX systems without X Windows.
> This is an advanced option.'
>
>
> Mystery..
>
> Niels
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org