Hi Saravanan,
Thank you for this reply! I was running into this same roadblock on this because I was using Java 18 (using brew and getting latest) on my M1Pro Mac and AEM wasn't starting up so I uninstalled it, and installed Java 11 instead (brew install openjdk@11) and it now works as expected.
...