title: cannot find symbol of own class Java
body: <p>I realise this has been asked a lot before but couldnt figure out the problem from those answers.</p>
  
  <p>I have an abstract class Task:</p>
  
  <pre><code>package crowdtrust;
  
  public abstract class Task
  {
  
    public enum Type
    {
      BinaryImageClassification;
    };
  
    public abstract void assignCrowd();
  };
  </code></pre>
  
  <p>an implementation task: </p>
  
  <pre><code>package crowdtrust;
  
  import java.util.Collection;
  import java.util.List;
  
  public class BinaryTask extends Task
  {
  
    private List&lt;SubTask&gt; subtasks;
  
    public BinaryTask(String name, String question)
    {
      super();
      this.name = name;
      this.question = question;
    }
  
    public boolean assignSubtask(SubTask s)
    {
        return subtasks.add(s);
    }
  
    public void assignCrowd()
    {
      //TODO 
    }
  
  };
  </code></pre>
  
  <p>and subtask class:</p>
  
  <pre><code>package crowdtrust;
  public class SubTask {
    //not important
  }
  </code></pre>
  
  <p>these are all in ct/src/crowdtrust</p>
  
  <p>from ct i run this makefile:</p>
  
  <pre><code>CONTEXT   = webapps/ROOT
  SRCDIR    = src
  
  CLASSDIR  = $(CONTEXT)/WEB-INF/classes
  LIBDIR    = $(CONTEXT)/WEB-INF/lib
  
  JAVAC     = javac
  
  SOURCES   = $(wildcard $(SRCDIR)/crowdtrust/*.java)
  CLASSES   = $(SOURCES:.java=.class)
  
  all: install clean
  
  clean:
      rm -f $(CLASSES)
  
  install: $(CLASSES)
      install -m600 $(CLASSES) $(CLASSDIR)/crowdtrust
  
  %.class: %.java
      $(JAVAC) -cp $(LIBDIR) $&lt;
  </code></pre>
  
  <p>getting these (plus more similar) errors:</p>
  
  <pre><code>javac -cp webapps/ROOT/WEB-INF/lib src/crowdtrust/BinaryTask.java
  src/crowdtrust/BinaryTask.java:6: cannot find symbol
  symbol: class Task
  public class BinaryTask extends Task
                                  ^
  src/crowdtrust/BinaryTask.java:9: cannot find symbol
  symbol  : class SubTask
  location: class crowdtrust.BinaryTask
    private List&lt;SubTask&gt; subtasks;
                 ^
  </code></pre>
  
  <p>any ideas what's causing the error?</p>