title: Javac command prompt compilation classes not found
body: <p>New to java so getting my hands dirty with cmd compilation. Getting 'cannot find symbol' for the instantiated classes. Please please help! :)</p>
  
  <p>MovieDAO class for database query instantiates beans MovieDetails and MovieInfo.</p>
  
  <p>Directory structure: Under root folder for the project, have src\com\library\model containing MovieDAO.java, MovieDetails.java, MovieInfo.java.</p>
  
  <p>MovieDetails and MovieInfo already compiled. The .class files are in classes\com\library\model. This is also the intended directory for the MovieDAO class.</p>
  
  <p>MovieDAO has:</p>
  
  <pre><code>package com.library.model;
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>import com.library.model.*;
  </code></pre>
  
  <p>Command prompt is at root folder (Project). Entered command:</p>
  
  <pre><code>javac -classpath C:\Users\Sudipto\Desktop\.....\mysql-connector-java.jar:classes:. -d classes src\com\library\model\MovieDAO.java
  </code></pre>
  
  <p>Compilation error:</p>
  
  <pre><code>....MovieDAO.java:25: error: cannot find symbol
  MovieDetails movieDetails = new MovieDetails();
  ^
  </code></pre>
  
  <p>Same with MovieInfo. Obviously some little thing I'm missing. Can't figure out what.</p>