Make sure Javac works with a hello world Java program .Create an ant file that compiles a basic hello world Java program. Add plenty system command lines that echo classpaths and paths. Run with verbose. Work your way toward your ant file from there.