title: Eclipse JDT compiler generates class files with "src" prefix
body: <p>I'm using the eclipse jdt compiler to compile java code.
  Class files are being generated, but the class name within them contains the prefix "src".
  For example, when compiling com.pkg.ClassName, the name of the generated class file is <strong>src</strong>.com.pkg.ClassName</p>
  
  <p>Here's the code:</p>
  
  <pre><code>            for (Object classFileObject : compilationUnitDeclaration.scope.referenceContext.compilationResult.compiledTypes
                  .values()) {
                  classFiles.add((ClassFile) classFileObject);
              }
  </code></pre>
  
  <p>When building the project, we put all the sources under the "src" folder, but the generated class files should not contain this src as a prefix.</p>