It sounds like you're not setting up your directory structure to match the packages of your java source files. The source for the class "org.example.abc.HelloWorld" should live in a directory like /src/org/example/abc.
Typically, you'd want your build.xml to be at the top-level of whatever project you're trying to build, and then the javac task inside it can reference the source directory where your package structure starts.
Something like this:
<project name="example" default="compile">
<target name="compile" description="compiles">
<mkdir dir="build"/>
<javac srcdir="src" destdir="build"/>
</target>
</project>
This is obviously very over simplified, but should help get you started.
If you're still having trouble, post your build.xml and some description of your project's layout so we can help.