Home » Software Development

Ant xml error cheatsheet

21 May 2011 One Comment

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: java.io.IOException: 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 »

  • fai said:

    thanks mate, this solved the issue…cheers

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

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