ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Meade <eme...@geekfarm.org>
Subject JIT Nullpointer masking NoClassDefError
Date Tue, 30 May 2000 23:47:58 GMT
I was cleaning up my classpath ( i.e. setting it over :)), and noticed
that if you don't have the SAX parser.jar in your class path you
get NullPointerException instead of a NoClassDefFoundError.

Just felt like sharing....
Erik Meade


D:\Java\jakarta\jakarta-ant>echo %CLASSPATH%
D:\Java\jdk1.2.2\lib\tools.jar;D:\Java\jakarta\jakarta-ant\lib\ant.jar;D:\Java\lib\jaxp.jar

D:\Java\jakarta\jakarta-ant>ant
Buildfile: build.xml
Exception in thread "main" java.lang.NullPointerException
         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
         at org.apache.tools.ant.Main.main(Main.java, Compiled Code)

D:\Java\jakarta\jakarta-ant>ant
Warning: JIT compiler "none" not found. Will use interpreter.
Buildfile: build.xml
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/xml/sax/SAXException
         at org.apache.tools.ant.Main.runBuild(Main.java:223)
         at org.apache.tools.ant.Main.main(Main.java:190)


Mime
View raw message