I'm reading Sierra/Bates and to understand the public, protected, private mechanisms used across multiple files in multiple packages, I am interested in understanding how to compile multiple files. Since I am unable to grasp this concept at Chapter 10, I studied several links, one of which is:
This error means that the directory path you gave doesn't exists. Are you executing this command from the parent directory of src directory i.e. test directory?? And did you properly place the java files in the test/src/com/mycompany/myproject/ directory??
I guess I was confusing this with setting up packages, i.e. I was under the impression that I had to create a path test/src/com/example/graphic, but no, the class files will go into test/classes/com/example/graphic, while the source files go under test/src/com/mycompany/myproject
When the .java files get compiled using the command in the common test directory, the class files go under /classes/.../graphic.