Errors when trying to , fork or access environment variables

  • Share
  • Share

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 , , , , , , , , , , , , , , , , , , ,

  1. admin
    March 20th, 2009 at 10:28 | #1

    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.

  1. No trackbacks yet.