ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Matzon" <mat...@certus.dk>
Subject Problems setting environment
Date Thu, 30 May 2002 13:02:44 GMT
Hi

I'm having trouble running my ant scripts, after updating to Windows XP.
When running the script, windows pops this dialog up:

#####
Title: 16 bit MS-DOS Subsystem
Text: C:\WINDOWS\system32\ntvdm.exe
      Error while setting up environment for the application. Choose
'Close' to terminate the application
#####

This is the stacktrace I am getting when running 'ant -verbose':

$ ant -verbose
Ant version 1.4.1 compiled on October 11 2001
Buildfile: build.xml
Detected Java version: 1.4 in: C:\java\jdk\j2sdk1.4.0\jre
Detected OS: Windows XP
parsing buildfile D:\Projects\XXXX\build.xml with URI =
file:D:/Projects/XXXX/build.xml
Project base dir set to: D:\Projects\XXXX
 [property] Loading D:\Projects\XXXX\custombuild.properties
 [property] Loading D:\Projects\XXXX\docs\XXXX.properties
 [property] Loading Environment environment.

BUILD FAILED

D:\Projects\XXXX\build.xml:47: java.lang.NullPointerException
        at
org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:135)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:85)
        at org.apache.tools.ant.Main.runBuild(Main.java:439)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
java.lang.NullPointerException
        at
org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
253)
        at
org.apache.tools.ant.taskdefs.Property.execute(Property.java:183)
        at
org.apache.tools.ant.ProjectHelper$TaskHandler.finished(ProjectHelper
.java:485)
        at
org.apache.tools.ant.ProjectHelper$AbstractHandler.endElement(Project
Helper.java:204)
        at
org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java
:347)
        at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
        at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
        at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
        at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

        at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
        at
org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.jav
a:85)
        at org.apache.tools.ant.Main.runBuild(Main.java:439)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 5 seconds

Any takers?

Thnx in advance!
/Brian Matzon

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message