title: How to import .class file into a .java file in eclipse correctly?
body: <p>I need to import a few class files into a java project in eclipse. I put the files in a folder and then add the folder to my project by right clicking the project, then select Properties > Java build path, then "Add External Class Folder".</p>
  
  <p>Then I imported the class into the java file using an import statement:</p>
  
  <pre><code>import cla11.classname;
  </code></pre>
  
  <p>("cla11" is the folder name, "classname.class" is the name of the class file.)</p>
  
  <p>However, the compiler doesn't allow the import (import cla11 cannot be resolved) and the classes contained in the class files are hence unusable in the project (... (class name) cannot be resolved to a type).</p>
  
  <p>Note: I am aware that my question is almost the same as the one in this link: <a href="https://stackoverflow.com/questions/2477947/how-to-import-class-file-in-a-java-file#_=_">https://stackoverflow.com/questions/2477947/how-to-import-class-file-in-a-java-file#<em>=</em></a>
  I used the method described in the answers, but the compiler does not allow it (as described).
  (Since I am not yet allowed to comment, the only way I could think of is to ask the same question again.(Any other suggestions on what I could do to solve such problems would be welcome.))</p>