Tom, welcome to Java Ranch! Please see you private messages...
Could you post the full Ant output? I helps to see the full output and exact error message.
Generally, it is not a good idea to write packageless classes (several things don't work correctly with packageless classes). Also, it is generally not a good idea to place Java source files in the base directory. Usually you designate a directory such as src to contain Java sources. (I suspect that the javadocs task got confused because it will also look in the cods directory for things to process...)
Hey Peter thank you a lot for taking time to help me.
I think the problem is that I'm using a packageless class (so, my next question is, do I need to put my things in a jar file?)
[javadoc] /home/dc23/b2 contains source files in the default package, you must specify them as source files not packages.
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] javadoc: error - Illegal package name: "/home/dc23/b2/test.*"
[javadoc] 1 error
Basically I have one java file (I compiled it so also the class) and I just want to use a build file to make a javadocs and store it in docs. Thanks a lot!