Listener Code implementation : Annotation error
Hi Friends,
I am trying to write a listener code that triggers a message in the log file, whenever a page is activated. I have attached the code FY reference.
I have used Eclipse with JDK 1.6 as compiler and Maven to build the project. Build is successful and I have checked in the corresponding JAR file to CRXDE using vlt tool. When I click on build bundle, I get the error message below. Wherever I have used annotation, it shows errors.
"Syntax error, annotations are only available if source level is 5.0"
I wanted to try with Java 1.5 version. But some strange reason, the jdk 1.5 64 bit dump from oracle site itself is not working. So, I cannot install that version in my machine to check. I have tried in various machine but did not work.
Is AEM supported only with 1.5 java version ? Annotations are supported in 1,6 as well then why do you think I get that message. Please help.
Do I need to put all the JAR files under Maven dependencies in Eclispe's project structure ???
Let me know anything else is needed.