I'm new to AEM(CQ), I've installed two version in my machine like AEM 5.6 and 6.2. version 6.2 is working fine in java 1.8.0_111 but 5.6 is not working. Can you please advise how use both version in a system?
AEM 5.6 does not support JVM 8.x as per the official document.
AEM 5.6.1 is the first version to add support for JVM 8.x starting from SP2.