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
Solved! Go to Solution.
Views
Replies
Total Likes
Yes, eclipse will work fine for java, see below
For sightly files, you can use Sightly extension in bracket IDE: https://docs.adobe.com/docs/en/dev-tools/aem-brackets.html
Take a look at examples here:
http://adobeaemclub.com/implementing-use-interface-using-sightly-in-aem-6-x/
http://adobeaemclub.com/access-osgi-ser%c2%advice-from-the-wcmuse-class-in-sightly/
Views
Replies
Total Likes
Yes, eclipse will work fine for java, see below
For sightly files, you can use Sightly extension in bracket IDE: https://docs.adobe.com/docs/en/dev-tools/aem-brackets.html
Take a look at examples here:
http://adobeaemclub.com/implementing-use-interface-using-sightly-in-aem-6-x/
http://adobeaemclub.com/access-osgi-ser%c2%advice-from-the-wcmuse-class-in-sightly/
Views
Replies
Total Likes
You have to start aem like java -jar <aem-jar> -debug <debug port>
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Do you have any idea about this?
Developing Java logic inside Java Use API next to Sightly template is definitely inconvenient.
Views
Replies
Total Likes
Hi,
Did you tried this with Sightly extension in bracket IDE: https://docs.adobe.com/docs/en/dev-tools/aem-brackets.html
Views
Replies
Total Likes