title: Eclipse, Java project - How do I add a source folder where the folder name is part of the package name?
body: <p>I tried searching for the answer and got a lot of similar problems but not this exact issue.</p>
  
  <p>I'm trying to set up Eclipse from a CVS project that has a non-Eclipse-friendly folder structure. </p>
  
  <p>Inside the project folder, all the source code is under a folder named "com." Subsequently, all the import statements inside the source files are in form of:</p>
  
  <pre><code>import com.xxx.yyy.SomeObject;
  </code></pre>
  
  <p>Which, of course, refers to SomeObject.java located at com/xxx/yyy. </p>
  
  <p>The problem is when I add the com folder inside Properties -> Java Build Path -> Source tab -> Add Folder, Eclipse complains about the import statement above. It says, "The declared package 'com.xxx.yyy' does not match the expected package 'xxx.yyy'".</p>
  
  <p>How do I solve this?</p>