Just wondering id someone could help me with sourcepaths I have the directory structure classes src sampleproject db and am trying to split the source and class files If I use javac -d classes src/sampleproject/db/*.java the files are compiled to the classes directory but under src. I tried javac -d classes -sourcepath src sampleproject/db/*.java which I expected to work but my java files could not be found. Also tried some varations with classpath but got lost. Any ideas Could anyone point out a fundemental error I'm making Cheers Tony
No Luck with that. Still get error: cannot read *.java The files are there and I'm calling javac from the directory above classes and src. Does javac work in some strange way or am I missing something?
hi Tony, i tried following, i have a dir hierarchy as, HOME/test1/test2/test.java HOME/test3 i write following command, javac -d test3 test1/test2/*.java and it creats test.class in test3 directory... thats what u want right? also, u r not using any Packages right? because if u have package src for each .java file then it WILL create the src directory in the classes and then put all class files there... regards maulin