Set default value for java property (system wide)Tag(s): Environment

If you find yourself using the same options over and over on your java.exe command line, you can set up a special environment variable, called _JAVA_OPTIONS, to contain your default options.

e.g. In Windows:

set _JAVA_OPTIONS=-Xms64m -Xmx128m -Dawt.useSystemAAFontSettings=lcd
In Linux:
export _JAVA_OPTIONS='-Xms64m -Xmx128m -Dawt.useSystemAAFontSettings=lcd'
ref : http://java.sun.com/j2se/1.5.0/docs/guide/2d/flags.html


If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2012
[ home ]