Expand my Community achievements bar.

SOLVED

Use-API Java logic next to the Sightly template - debug and IDE support

Avatar

Level 4

Hi guys,

I want to implement a Use-API Java logic next to the Sightly template of my AEM component. Do you know if it is possible to debug the Java code and make Eclipse recognize the class as a Java class in order to have IDE auto completion, highlighting, etc. ?

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 10
5 Replies

Avatar

Correct answer by
Level 10

Avatar

Employee

You have to start aem like java -jar <aem-jar> -debug <debug port>

Avatar

Level 4

Maybe I had to add one detail.

My Java class is inside the content package (not inside the osgi bundle!) next to the Sightly template. Do I have to configure in any specific way Eclipse in order to debug that Java class and make Eclipse recognize it as a Java class?

Thank you

Avatar

Level 4

Do you have any idea about this?

Developing Java logic inside Java Use API next to Sightly template is definitely inconvenient.