title: importing a valid package is causing a java compiler error
body: <p>I am getting a compiler error when compiling Order.java file even when it contains an import statement for the other packaged class. Im not entirely sure why this is happening but here is a directory tree with some files that I have:</p>
  
  <ul>
  <li><p>com/my/domain/Order.java<br/>
  Inside this file are the following package and imports:</p>
  
  <pre><code>package domain;
  import utils.MyDate;
  </code></pre></li>
  <li><p>com/my/utils/MyDate.java<br>
  Inside this file are the following package and imports:</p>
  
  <pre><code>package utils;
  </code></pre></li>
  </ul>
  
  <p>Compiler error I get when compiling Order.java : </p>
  
  <pre><code> Order.java:2: error: package com.my.utils does not exist
   import com.my.utils.MyDate;
                 ^
   Order.java:5: error: cannot find symbol
    public MyDate orderDate;
         ^
    symbol:   class MyDate
    location: class Order
  
   Order.java:16: error: cannot find symbol
    public Order(MyDate d, double amt, String c, String p, int q){
               ^
   symbol:   class MyDate
   location: class Order
  
   Order.java:24: error: cannot find symbol
    public Order (MyDate d, double amt, String c) {
                ^
   symbol:   class MyDate
   location: class Order
  4 errors
  </code></pre>
  
  <p>I am still unsure how to solve this after trying form the comments. Here is some more detail.</p>
  
  <p>Existing Statements in .bash_profile :</p>
  
  <pre><code> export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
   export CLASSPATH=${CLASSPATH}:/Users/3aCaGa/Desktop/Java-SE-8-Programs/SimplifiedDateClass/com/my
  </code></pre>
  
  <p>How I am trying to compile? I am going to the java file location in the directory and running command for example :</p>
  
  <pre><code> java Order.java
  </code></pre>
  
  <p>For more detail on the files that and their exact contents see:
  <a href="https://github.com/gosem01/Java-SE-8-Programs/tree/master/SimplifiedDateClass/com/my" rel="nofollow noreferrer">https://github.com/gosem01/Java-SE-8-Programs/tree/master/SimplifiedDateClass/com/my</a></p>