Doubt in build.xml file in Apache-Ant1.6.5
<p>I have used Collections in my code with Generics. When try to compile that java file in build.xml, its showing error at generics and its saying its not a statement. I am using Apache-Ant-1.6.5 and  i have installed JDK 1.5 only . I know generic will support in jdk1.5 but its showing error. The below is the error i am getting for the code<br></p>

<p>code :</p>

<pre><code>Map&lt;String, String&gt; inputconfigmap = 
    new LinkedHashMap&lt;String, String&gt;();
</code></pre>

<p>Exception :</p>

<pre><code>compile:
    [mkdir] Created dir: D:\GenericPreProcessor\Source\classes
    [javac] Compiling 49 source files to D:\GenericPreProcessor\Source\classes
    [javac] D:\GenericPreProcessor\Source\src\com\dnb\genericpreprocessor\fileprocessor\FixedLength
FileProcessor.java:187: not a statement
    [javac] Map&lt;String, String&gt; inputconfigmap = 
                new LinkedHashMap&lt;String, String&gt;();
</code></pre>

<hr>

<p>I did as per your suggestion but i got the following in the console.</p>

<p><strong>Console :</strong><br>
D:\GenericPreProcessor\Source>ant<br>
Buildfile: build.xml<br>
     [echo] JVM version is 1.5<br>
     [echo] Target compilation is ${ant.build.javac.target}<br></p>

<p>clean:<br>
   [delete] Deleting directory D:\GenericPreProcessor\Source\classes<br></p>

<p>cleanJar:<br></p>

<p>compile:<br>
    [mkdir] Created dir: D:\GenericPreProcessor\Source\classes<br>
    [javac] Compiling 49 source files to D:\GenericPreProcessor\Source\classes<br>
    [javac] javac: invalid target release: 1.5<br>
    [javac] Usage: javac  <br>
    [javac] where possible options include:<br>
    [javac]   -g                        Generate all debugging info<br>
    [javac]   -g:none                   Generate no debugging info<br>
    [javac]   -g:{lines,vars,source}    Generate only some debugging info<br>
    [javac]   -nowarn                   Generate no warnings<br>
    [javac]   -verbose                  Output messages about what the compiler is doing<br>
    [javac]   -deprecation              Output source locations where deprecated APIs are used<br>
    [javac]   -classpath          Specify where to find user class files<br>
    [javac]   -sourcepath         Specify where to find input source files<br>
    [javac]   -bootclasspath      Override location of bootstrap class files<br>
    [javac]   -extdirs            Override location of installed extensions<br>
    [javac]   -d             Specify where to place generated class files<br>
    [javac]   -encoding       Specify character encoding used by source files<br>
    [javac]   -source          Provide source compatibility with specified release<br>
    [javac]   -target          Generate class files for specific VM version<br>
    [javac]   -help                     Print a synopsis of standard options<br></p>

<p>BUILD FAILED</p>
