I am trying to compile my project using javac command line tool, but without success. As most of you, I use a powerful IDE when developing and don't bother myself with such a trivial task like it is compiling.
Now when I want to try and build a larger project than a few source files the first time, I don't want to believe that it is so complicated.
My project's file structure is something like that:
So I how do you compile all that. There can also be child2 and child102 in the packet hierarchy.
As I was hoping to execute these commands, I failed miserably:
javac -sourcepath src -d classes *.java
javac -sourcepath src/* -d classes *.java
javac -sourcepath src/** -d classes *.java
javac -d classes src/*/*.java
So how to use javac, the arguments and wildcards correctly and intelligently. I don't want to type in all the package or source file names separately.