• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant 1.7 compilation problem with Java 5 Features

 
Lisa Ray
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm facing a strange issue while compiling an app which uses Java 5 annotations. I'm tried with JDK 5 and JDK 6 and Apacha Ant 1.7. I get the following error while executing ant either from Eclipse or command line.



My ANT_HOME is set to C:\Tools\apache-ant-1.7.1
JAVA_HOME is set to C:\Program Files\Java\jdk1.5.0_09

Further, I tried using the following options with the javac task:




Any help shall be highly appreciated.

Thanks
Lisa
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that has anything to do with compiling Java source files - the error message is comping from the attribute-compiler task, not from the javac task. Could you post the attribute-compiler task?
 
Lisa Ray
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
Thanks for posting.

JavaRanch rocks!

I had to make two changes to get it working:

1. Add qdox 1.6 JAR to ANT
2. Tweak the attribute compiler task:


Thanks
Lisa

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic