For certain fields in the project, all tokens of the form %name% are replaced with the value of the equivalent environment variable during execution. For example, if the classpath contains myapp.jar;%CLASSPATH%, and the CLASSPATH environment variable on the target machine contains mydriver1.jar;mydriver2.jar, then the final classpath will contain myapp.jar;mydriver1.jar;mydriver2.jar after substitution.
A special case is %JAVA_HOME% (case-sensitive), which will always be substituted for the actual base directory of the JDK/JRE that is found on the target machine. For example, if the classpath contains %JAVA_HOME%\lib\tools.jar, and a suitable JDK is found in C:\j2sdk1.4.1_02, then the final classpath will contain C:\j2sdk1.4.1_02\lib\tools.jar after substitution.
Other special variables include:
||Expands to current date in "YYYYMMDD" format.|
||Expands to current time in "HHMMSS" 24-hour time format.|
||Expands to total physical RAM, manifested in the form "xxxxm", which can be passed as a parameter to the -Xms or -Xmx JVM arguments. An optional percentage figure can be added to the variable eg. %TOTALRAM80% to indicate 80% of total RAM.|
||Expands to total available RAM, manifested in the form "xxxxm", which can be passed as a parameter to the -Xms or -Xmx JVM arguments. This is the amount of physical memory that is immediately available without having to write its contents to disk first An optional percentage figure can be added to the variable eg. %AVAILRAM80% to indicate 80% of total RAM.|
Currently, the project fields on which environment variable substitution is performed are: