title: Ant : Compile failed; see the compiler error output for details
body: <p>I want to run "ant build-project" a project build.xml.</p>
  
  <pre><code>    &lt;javac deprecation="true"
             includeantruntime="false"
             debug="true"
             debuglevel="${debuglevel}"
             destdir="${project.build.outputpath}"
             verbose="true"
             encoding="UTF-8"&gt;
          &lt;src path="${project.src.classes}" /&gt;
          &lt;compilerarg value="-Xlint" /&gt;
          &lt;classpath refid="core.classpath" /&gt;
      &lt;/javac&gt;
  
  &lt;path id="core.classpath"&gt;          
     &lt;pathelement location="${project.build.outputpath}" /&gt;       
        &lt;pathelement location="${test.dir}" /&gt;
                &lt;fileset dir="${project.build.libpath}"&gt;
                  &lt;include name="**/*.jar"/&gt;
                &lt;/fileset&gt;        
  &lt;/path&gt;
  </code></pre>
  
  <p>project.build.outputpath:/PROJECT_MAIN_DIR/target/classes
  project.build.libpath:/PROJECT_MAIN_DIR/target/lib</p>
  
  <p>But this output makes me crazy:</p>
  
  <blockquote>
    <p>build.xml:77: Compile failed; see the compiler error output for
    details.  at
    org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:999)   at
    org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)   at
    org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)  at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)     at
    org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      at org.apache.tools.ant.Task.perform(Task.java:348)     at
    org.apache.tools.ant.Target.execute(Target.java:357)  at
    org.apache.tools.ant.Target.performTasks(Target.java:385)     at
    org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1298)    at
    org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1181)   at
    org.apache.tools.ant.Main.runBuild(Main.java:698)     at
    org.apache.tools.ant.Main.startAnt(Main.java:199)     at
    org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)   at
    org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)</p>
  </blockquote>
  
  <p>My configuration:</p>
  
  <p><strong>Ant:</strong> Apache Ant version 1.7.0 </p>
  
  <p><strong>Java:</strong> java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6
  1.11.4) (6b24-1.11.4-1ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)</p>
  
  <p><strong>PC</strong> ubuntu 12.04</p>
  
  <pre><code>XXX.java:248: warning: [rawtypes] found raw type: Class
      [javac]     private static void logNotFoundInMemory(Class entityClass, Integer id)
      [javac]                                             ^
      [javac]   missing type arguments for generic class Class&lt;T&gt;
      [javac]   where T is a type-variable:
      [javac]     T extends Object declared in class Class
  
  
  StatReporterJob.java:219: warning: [unchecked] unchecked cast
      [javac]             T stat = (T) snapshotRow[REFERENCE];
      [javac]                                     ^
      [javac]   required: T
      [javac]   found:    Object
  </code></pre>
  
  <p>Would you help ?</p>