warning: [path] Unexpected file on path:

Hi

I try to compile a lott of files with the command:

javac -classpath c:\ -sourcepath c:\test\*.java

And that gives the following warning:

warning: [path] Unexpected file on path: c:\test\AnalyzeAccNum.java

The result is that that file is not compiled.

And if I use javac to compile only that file it works.

Why isn't it compiling the first time? And how can I fixed it so that file will be compiled with all the other files.

Thanks in advance.

[502 byte] By [klaasdea] at [2007-11-27 8:57:58]
# 1
What you have specified is not a sourcepath. It's a specification of which files to compile. A sourcepath is a directory. I suspect you can get rid of the -sourcepath part altogether.
ejpa at 2007-7-12 21:23:15 > top of Java-index,Developer Tools,Java Compiler...
# 2
Thanks ejp,That was the problem. Its working now!
klaasdea at 2007-7-12 21:23:15 > top of Java-index,Developer Tools,Java Compiler...