javac *\*.java doesn't work for me?
D:\Apps\Eclipse\eclipse\Workspace\Hola>dir *.java
Volume in drive D is Things
Volume Serial Number is 2C7C-0D4D
Directory of D:\Apps\Eclipse\eclipse\Workspace\Hola
06/20/2007 02:54 PM146 Hola.java
1 File(s)146 bytes
0 Dir(s) 130,127,491,072 bytes free
D:\Apps\Eclipse\eclipse\Workspace\Hola>javac *.java
D:\Apps\Eclipse\eclipse\Workspace\Hola>cd..
D:\Apps\Eclipse\eclipse\Workspace>javac *\*.java
error: cannot read: *\*.java
1 error
I'm probably missing something obvious here, but what is it? Also, dir /s works for me; what does javac work on when doing recursion?
[662 byte] By [
Schizoguya] at [2007-11-27 8:37:40]

> ...
> I'm probably missing something obvious here, but what
> is it? Also, dir /s works for me; what does javac
> work on when doing recursion?
I am not aware of such an option with javac, but may I suggest you try a built tool like Ant?
http://ant.apache.org/
Good luck.
I got the impression that javac was recursive (in fact, I think that I've seen those words precisely) outside of .jars, which I don't use - if I get one, I just extract it. I'll use a third-party compiler if it comes to that, but I think that javac ought to work.
For the record, I don't have a CLASSPATH Environment Variable (though if I did, it would just be a case of making sure that . is on it). I think that having one just overwrites the default one, which is ".".
Does javac *\*.java work on other machines? Do I just have the command wrong?
Try dir *\*.java. That won't work either. It's a stupid cmd.exe thing, not a java thing. In any decent *nix shell, filename globbing will work for any command */*whatever.
Something like -s -d or some bloody thing like that allows multilevel filename globbing, but I forget the exact details.
jverda at 2007-7-12 20:34:56 >

/s. Also, argh. Looks like I'll be doing this the old-fashioned way, then. Kind of a pain when the project in question contains 108 folders. That or switch OSs. Anyway, thanks! For once, a problem that I'm having apparently isn't my fault.Message was edited by: Schizoguy
> /s. Also, argh. Looks like I'll be doing this the
> old-fashioned way, then. Kind of a pain when the
> project in question contains 108 folders. That or
> switch OSs.
Or use cygwin, which gives you unix shells and programs in Windows.
Or use ant, as suggested.
jverda at 2007-7-12 20:34:56 >
