Compiling multiple packages using the command line in Java
问题 Hi i have been using an IDE but now I need to run and compile from the command line. The problem is that I have multiple packages and I have tried to find the answer but nothing has worked. So I have src/ Support/ (.java files) Me/ (.java files) Wrapers/ (.java files) Do you know how to compile everything with javac? 回答1: This should do it (may require additional classpath elements via the -cp command line switch): javac Support/*.java Me/*.java Wrapers/*.java But if your build process gets