Welcome Message

"The difference between a successful person and others is not a lack of strength,
not a lack of knowledge, but rather a lack in will."
-Vince Lombardi

March 8, 2012

To compile java files within Directory including subdirectory

There is no direct way to do it.

1. using Build tool like Maven, Ant etc or using Batch scripts.
2. using command line,

>dir /b /s *.java >> files.txt

Dir to Display a list of files and subfolders
/b for Bare format (no heading, file sizes or summary).
/s for include all subfolders.
>> for print the output in to a file

Then type: javac @files.txt