I had always wondered why on earth we had to add the -Xmx256m flag to the JVM to launch the Glassfish installer…

glassfish-installer-jarcontent

It’s as simple as that: everything is packed inside one class file which contains the installer code as well as the data.

Is there any good reason for doing so? I would find it more intuitive to have at least the data separated from the installer classes, so that it could be launched graphically (Windows, Mac OS X) or even from a terminal… using only java -jar glassfish-installer-XXX.jar.

(Just for the sake of clarity, I don’t care that Glassfish is not using IzPack :-) )

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">