title: Cannot find symbol [Compiler error]
body: <p>I've done this little program which tries to construct triangles and calculates the surface for homework and I tested it in Eclipse but when I try to upload it to our system I get 6 errors, all of the same type:</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>/test/src/math.test/TestTriangleFunctionPublic.java:4: error: cannot find symbol
        import math.NotATriangleException;
                  ^
        symbol:   class NotATriangleException</p>
        
        <p>/test/src/math.test/TestTriangleFunctionPublic.java:5: error: cannot find symbol
        import math.Triangle;
                  ^
        symbol: class Triangle
        location: package math</p>
        
        <p>/test/src/math.test/TestTriangleFunctionPublic.java:45: error: cannot find symbol
        actual = Triangle.calculateArea(a, b, c);
                               ^
        symbol:   variable Triangle
        location: class TestTriangleFunctionPublic</p>
        
        <p>/test/src/math.test/TestTriangleFunctionPublic.java:46: error: cannot find symbol
        } catch (NotATriangleException e1) {
                           ^
        symbol:   class NotATriangleException
        location: class TestTriangleFunctionPublic</p>
        
        <p>/test/src/math.test/TestTriangleFunctionPublic.java:56: error: cannot find symbol
                    actual = Triangle.calculateArea(a, b, c);
                             ^
        symbol:   variable Triangle
        location: class TestTriangleFunctionPublic</p>
        
        <p>/test/src/math.test/TestTriangleFunctionPublic.java:57: error: cannot find symbol
                } catch (NotATriangleException e) {
                         ^
          symbol:   class NotATriangleException
          location: class TestTriangleFunctionPublic</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>This are the two classes:</p>
  
  <pre><code>package math;
  
  public class Triangle {
      static double s;
      double surface = 0;
      static double a;
      static double b;
      static double c;
  
      public double calculateArea(double a, double b, double c) throws NotATriangleException{
          if (a&lt;= 0.0 || b &lt;= 0.0 || c &lt;= 0.0){
              throw new NotATriangleException("Cannot construct Triangle!");
          }
          else if( (a+b)&lt;=c &amp;&amp; (a+c)&lt;=b &amp;&amp; (b+c)&lt;=a){
              throw new NotATriangleException("Cannot construct Triangle!"); 
          } 
  
          else {
              s = ((a + b + c)/2);
              surface = Math.sqrt(s * (s - a) * (s - b) * (s - c));
              return surface;
          }
  
      }
      public double getErgebnis (){
          return surface;
      }
  }
  </code></pre>
  
  <p>and the Exception class:</p>
  
  <pre><code>package math;
  
  @SuppressWarnings("serial")
  public class NotATriangleException extends Exception {
      public NotATriangleException(String message) {
          super(message);
      }
      public NotATriangleException(String message,Throwable throwable) {
          super(message, throwable);
      }
  }
  </code></pre>
  
  <p>I'm disappointed because I can't figure out what's wrong!</p>