title: Java can not find method of class
body: <p>I am trying to call a method of my selfmade "Filter" class, but the Compiler can not find the method.</p>
  
  <p>It is a little bit tricky, because I write my code in Eclipse where everything seems to be fine. But I have to copy my code into another Software and compile it there as well. This Compiler on the other hand can not find my method.</p>
  
  <p>I assume that the Eclipse Compiler maybe "allows" more errors of which I am not even aware of. The other Compiler however struggles with them.</p>
  
  <p>Here is what the "other" Compiler prints as error code:</p>
  
  <pre><code>C:\Program Files\Enomic\enomic-server\data\rules\testcompileboehmch\CodeTest.java:77: error: cannot find symbol filt.setHasRemoved(true);
  symbol:   method setHasRemoved(boolean)
  location: variable filt of type tms.Filter
  </code></pre>
  
  <p>I have no idea why my class is incorrect. As said above in eclipse everything works fine.</p>
  
  <p>The CodeTest Class(cut down to the important part):</p>
  
  <pre><code>package tms;
  
  import tms.Filter;
  import java.util.*;
  
      Filter filt = new Filter();
      filt.setHasRemoved(true);//cannot be found
  </code></pre>
  
  <p>My Filter class:</p>
  
  <pre><code>package tms;
  
  import java.util.ArrayList;
  import java.util.List;
  
  public class Filter {
  
  private List&lt;Object&gt; remainingList;
  private List&lt;Object&gt; removedList;
  private Object typ;
  private boolean hasRemoved;
  
  public Filter()
  {
      this.remainingList = new ArrayList&lt;Object&gt;();
      this.removedList = new ArrayList&lt;Object&gt;();
      this.typ = new Object();
      this.hasRemoved = false;
  }   
  public Filter(List&lt;Object&gt; remaining, List&lt;Object&gt; removed, Object typ, boolean hasRemoved)
  {
      this.remainingList = new ArrayList&lt;&gt;();
      if(remaining != null)
      {
          this.remainingList.addAll(remaining);
      }
      this.removedList = new ArrayList&lt;&gt;();
      if(removed != null)
      {
          this.removedList.addAll(removed);
      }
      this.typ = typ;
      this.hasRemoved = hasRemoved;
  }
  
  //Set-Methoden      
  public void setRemainingList(List&lt;Object&gt; list)
  {
      this.remainingList.clear();
      this.remainingList.addAll(list);
  }
  public void setRemovedList(List&lt;Object&gt; list)
  {
      this.removedList.clear();
      this.removedList.addAll(list);
  }
  public void setTyp(Object val)
  {
      this.typ = val;
  }
  public void setHasRemoved(boolean val)
  {
      this.hasRemoved = val;
  }
  
  //Get-Methoden
  public List&lt;Object&gt; getRemainingList()
  {
      return this.remainingList;
  }
  public List&lt;Object&gt; getRemovedList()
  {
      return this.removedList;
  }
  public Object getTyp()
  {
      return this.typ;
  }
  public boolean getHasRemoved()
  {
      return this.hasRemoved;
  }
  } 
  </code></pre>
  
  <p>I really do not know why this doesn't work. Is there any mistake I can't see?</p>