Compile with *.java and a single file

hello,

I can compile without errors when i try "javac *.java"

but when i just compile a single file like "Agents.java", the compiler cannot resolve the interface implemented. Is it normal or sth wrong with my java setting or any other things else?

Thanks so much.

Here is the compilation messages:

D:\>javac *.java

D:\>javac Agents.java

Agents.java:1: cannot resolve symbol

symbol : class AgentInterface

location: class Agents

public class Agents implements AgentInterface {

^

1 error

[570 byte] By [c1515973a] at [2007-10-2 10:15:39]
# 1
The compiler isn't able to see the AgentInterface.java file or the AgentInterface class. Make sure that either one (or both) are in the same directory as Agents.java, and that AgentInterface does not contain a first line that starts "package . . ".
ChuckBinga at 2007-7-13 1:40:18 > top of Java-index,Developer Tools,Java Compiler...