I need to compile a jar file using ant (1.7.0) to run under a specific version of Java (1.5). I currently have Java 1.6 on my machine. I have tried setting:
Use "target" attribute and remove the 'compiler' attribute. See here. So it should go something like this:
Hope this helps