title: How do I fix a "declared package does not match the expected package" error on Eclipse?
body: <p>I've feel like I have gone through the proper steps to fix this error, and I've looked at other questions about this in SO and other places, but for some reason I'm still having an issue.</p>
  
  <p>I am trying to set up a project using the Apache JMeter source code.</p>
  
  <p>As an example, the file <code>BeanShellAssertion.java</code> is in</p>
  
  <pre><code>~/workspace/apache-jmeter-2.9/src/components/org/apache/jmeter/assertions.
  </code></pre>
  
  <p>My source folder is <code>src/components</code>.  The package declaration in <code>BeanShellAssertion.java</code> is</p>
  
  <pre><code>package org.apache.jmeter.assertions;
  </code></pre>
  
  <p>Looking at it, it seems like everything is set up the way it is supposed to be.  However, the package declaration is causing an error:</p>
  
  <pre><code>The declared package "org.apache.jmeter.assertions" does not match the
  expected package "components.org.apache.jmeter.assertions"
  </code></pre>
  
  <p>Image is below.  What exactly am I doing wrong here?</p>
  
  <p><img src="https://i.stack.imgur.com/Y2TIq.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/IvDx5.png" alt="enter image description here"></p>