1
javac `find $(sourcefoulder) -name "*.java"` (on a make file)

or

javac $(find sourcefolder -name "*.java") (on the terminal)

I have windows setup with PATH variables, both javac and java working.

Thanks

Ribbaz
  • 21
  • 1
  • One well-known cross-platform equivalent is [Ant](http://ant.apache.org/), or similar Java-aware build tool. It is ok for one build tool to invoke another when mixing languages. – Andreas Jan 26 '16 at 21:05
  • 2
    lot of answers here: http://stackoverflow.com/questions/6623161/javac-option-to-compile-all-java-files-under-a-given-directory-recursively – wero Jan 26 '16 at 21:07

0 Answers0