title: How to compile multiple Java files when there are Java files in other packages?
body: <p>I am compiling multiple files in a directory (<code>javac *.java</code>) but I have a problem when I try to do this.</p>
  <p>I get compile errors saying that <code>javac</code> cannot find a symbol of an object.</p>
  <p>I have multiple packages that contain Java files that are needed to run the main program. But it seems that trying to compile these one by one won't work. It runs fine in my IDE but I'm interested in learning how it's done via <em>command prompt</em>.</p>
  <p>The main program is in the drivers folder. I have tried compiling the files in order of dependency but that didn't work out.</p>
  <p><img src="https://i.stack.imgur.com/mF2uZ.png" alt="this is a screenshot of the folders" /></p>