I’m creating a Web Start application which would benefit from some of the newer JVM options (especially escape analysis, G1 garbage collector etc.)
At the same time, I would like the application to work gracefully on older JVMs that do not support these options.
Is there a good way of achieving this?
As Thorbjørn mentioned, Java 6 u10 allows multiple
j2seelements in JNLP. The JNLP File Syntaxresourcessection of the latest Java Web Start Developer’s Guide, indicates that multiplej2seelements, each withjava-vm-argsattributes can be specified with the most preferred occurring first. For example: