% ant javadoc
...
[javadoc] Constructing Javadoc information...
[javadoc] javadoc: warning - Multiple sources of package comments found for package "org.apache.commons.logging"
[javadoc] javadoc: warning - No source files for package org.apache.hadoop.hive.ql.util.typedbytes
[javadoc] Standard Doclet version 1.6.0_15
[javadoc] Building tree for all the packages and classes...
[javadoc] java.lang.OutOfMemoryError: Java heap space
[javadoc] at com.sun.org.apache.xerces.internal.util.XMLChar.<clinit>(XMLChar.java:52)
[javadoc] at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipDeclSpaces(XMLEntityScanner.java:2105)
[javadoc] at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:197)
[javadoc] at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)