Ant xml error cheatsheet

I generally use Ant to build my projects. Within Ant, I use Ivy to include required libraries for dependency management.
This post contains some of the common ant errors that i have come across and how I managed to resolve those errors.

Javadoc failed: CreateProcess: error =2
Steps to resolve:
– go to command prompt, type javadoc
– if the command is not recognised by command prompt, include the java path in the environment variables (My Computer ->Properties->Advanced->Environment variables->System variables
– include the java bin path in the above PATH variable under System variables
– restart another cmd, type javadoc and now the command should be recognised by the system
– include useexternalfile=”yes”  in the <javadoc in Ant file
– close eclipse, restart it again, and it should solve the above error.



One Comment

Add a Comment

Your email address will not be published. Required fields are marked *

To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image