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?
Asked
Active
Viewed 903 times
2
-
And what are the errors? _5.6 is not working_ is very vague statement. – Jozef Chocholacek Apr 27 '17 at 10:15
-
the following error I've in AEM 5.6: Error: Unable to compile class for JSP: An error occurred at line: 95 in the jsp file: /libs/granite/core/components/login/login.jsp The type java.lang.CharSequence cannot be resolved. – ajai Apr 27 '17 at 10:37
2 Answers
4
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.

Imran Saeed
- 3,414
- 1
- 16
- 27
-
-
-
Are you using java 7 to run AEM 5.6? If you use default java, the java 8 might be used and the error you are getting is from java 8 so make sure you give absolute path to java /jdk/1.7/../java -jar crx-*** to run AEM 5.6 – Imran Saeed Apr 27 '17 at 11:01
-
The following path, I have given: C:\Program Files\Java\jre7\bin\javaw.exe – ajai Apr 27 '17 at 11:08
-
You mean like C:\Program Files\Java\jre7\bin\javaw.exe -jar cq-quickstart-5.6.jar, also can you use java.exe to see more errors? – Imran Saeed Apr 27 '17 at 11:25
-
Yes, of course it shows more errors. Even I've changed environment variable but it show same – ajai Apr 27 '17 at 11:32
-
I think you have an issue with Java version that is being picked up for AEM... Look at this thread for some pointers: http://stackoverflow.com/questions/26324486/properly-installing-java-8-along-with-java-7 – Imran Saeed Apr 27 '17 at 12:34
0
You could use virtual box or docker to run multiple instances each having its own dedicated environment.
For docker based environments you can find the image on docker hub (search for AEM)
For Virtual box, you could use Vagrant and Virtualbox for provisioning - refer to provisioning script here, this allows to customize java and aem version within the configuration YAML

Ameesh Trikha
- 1,652
- 2
- 12
- 18