The way that java works, if you change one thing, you have to recompile it all
That's not true. Like other languages, you just have to recompile what depends on the class you changed.
That said, that requires a list of dependencies, and finding that list is beyond what this tool should do.
that's what I asked
I didn't notice there was a question, since I didn't look for one, since this isn't SoPW.
javac surely returns a non-zero exit code on error, and zero on success.
| [reply] [d/l] |
| [reply] [d/l] |
If I change something in the hierarchy, the everything lower changes.
Yes, like I said, you don't need to recompile everything. Only the stuff higher in the dependency hierarchy needs to be recompiled. You don't have to compile the stuff deeper in the dependency hierarchy.
Also I tried running javac in `` quotes, but it never returns anything.
That captures what javac prints to STDOUT. I suggested you check its exit code. See the return value of system.
| [reply] [d/l] [select] |