I tried using java datetimeformatter for some date manipulation in a sling servlet and ended up with the following error. I think the import statement is also correct. [import java.time.format.DateTimeFormatter;]
Error :
Only a type can be imported. java.time.format.DateTimeFormatter resolves to a package
Request your suggestions. Thanks in advance. :)
Solved! Go to Solution.
Views
Replies
Total Likes
this class is only available since java 1.8 - are you running AEM on java 1.8?
Views
Replies
Total Likes
Please share your entire code..
Views
Replies
Total Likes
this class is only available since java 1.8 - are you running AEM on java 1.8?
Views
Replies
Total Likes
That's the mistake. Thank you for pointing it!!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies