I tried to compile a bunch of programs that my program has generated
But it fails.
I can compile one file
But if I give a source path it fails. It seems that the sourcefile option does not work since the -cp option works
my string is
String sourcePath = "c:\\project\\src";
Stroug outPath = "c:\\project\\classes";
String sourcefile = "*.java";
tring [] source = {"-verbose","-sourcepath",
sourcePath
,"-d",outp
utPath, sourcefile};
if sourcefile = "example.java" and is in the current directory it works.
Wildcard seem not to work
How to solve or is it just a bug in 1.5 ?
Start Free Trial