Resolve noclassdeffounderror in ant

Resolve noclassdeffounderror in ant

This is documented in ant’s user manual.

Ant classpath is made out of jars that are added in a specific sequence.

  • First Ant would add jars that are passed as part of -lib argument.For -lib a directory path (could be relative from build script) of classpath jars as well as lisr of individual jars can be a valid argument.
    [crayon-5ba537d93c5d6110221225/]
  • Ant would then add jars from user home .ant directory. It is usually referred as ${user.home}/.ant/libThis is a preferred location for development only as your .ant directory will not be shared when running continuous integration server.
  • Ant would then add jars from ANT_HOME/lib.I would suggest not to use this option at all. Changing Ant installation could lead to class conflicts when your builds are looking for different versions of the same jar.
Read Also:  5 MacOS Sierra Hidden Features You Should Know About

Leave a Reply

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