Errors when trying to , fork or access environment variables
Applies to:
Ant 1.4, Windows XP, JDK 1.4
Description:
Occurs while using Apache Ant.
Cause:
Ant < 1.5 doesn't recognize Windows XP as a flavor of Windows that runs CMD.EXE instead of COMMAND.COM. JDK 1.3 will tell Ant that Windows XP is Windows 2000 so the problem doesn't show up there.
JAVA-Tools "-dos.name=" & java, "ant" "ant opts" "environment variable", ant doesn't recognize env variable, ant dos environment, ant fork environment variable, ant opts, ant xms512m, ant-opts -xms512m -xmx512m "-dos.name=windows_nt", antopts, classnotfoundexception: ant_opts=-xmx512m ant, environment variables forks, fork and environment variables, fork environment variables, j, java "-dos.name", java dos environment variables, lrm-00118: syntax error at '=' at the end of input, vironment variable ant_opt, xmx512m ant variable, xp doesnt recognize apache ant
Apart from upgrading to Ant 1.5 or better, setting the environment variable ANT_OPTS to -Dos.name=Windows_NT prior to invoking Ant has been confirmed as a workaround.