Compiling all the files in a folder for a java programmer is a routine job ,,so what we do we go to required directory and say javac*.java and all the java files get compiled...
now suppose we are at e:\javapro and we want to compile all the java files present in
f:\javapro so what we will do,,we will go to f:\javapro in the prompt ,and then we will say javac *.java....
this is what what we do when we are using upto java7
now from java7 we can compile all the files in the different folders form the different location....
again suppose we are at e:\javapro and want to compile all the java files present at f:\javapro ,,so in java7 we will just say::
javac "f:\javapro\*.java";
and all the files will get compiled........
caution::quotes are necessary.......
but with java6 it will give the error::
file not found::f:\javapro\*.java
0 comments:
Post a Comment