Skip to main content
eliash27546545
Level 2
Jul 5, 2018 2:03 PM UTC
Solved

Error on quick start aem 6.4

Hey

After creating an AEM project following the steps on this link Getting Started with AEM Sites Part 1 - Project Setup

i lunched the free trial aem version 6.4 and registered, when i am trying to browse http://localhost:4502/sites.html i am getting this error:

org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 267 in the jsp file: /libs/granite/core/components/login/login.jsp Type mismatch: cannot convert from Object to String 264 ...

Can anyone help me

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Jul 10, 2018 12:13 PM UTC

Can you confirm if you have 2 JRE in your system (even if you are giving correct details in JAVAHOME or PATH variable)?

If so, go to registry -> HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment and check the currentVersion, it should be the latest and compatible version.

Kautuk Sahni

20 replies

Adobe Employee
Jul 5, 2018 2:18 PM UTC

Looks like you are running the AEM 6.4 jar with an unsupported version of JVM. Please go through Technical Requirements for more details.

Translate
smacdonald2008
Level 10
Jul 5, 2018 3:06 PM UTC

What Java version is your Java HOME variable referencing?

Translate
eliash27546545
Level 2
Jul 6, 2018 10:36 AM UTC

Java version: 1.8.0_171, vendor: Oracle Corporation

Java home: C:\Program Files\Java\jdk1.8.0_171\jre

Translate
Adobe Employee
Jul 6, 2018 1:42 PM UTC

Only 64bit version is supported. Can you check?

Translate
eliash27546545
Level 2
Jul 6, 2018 2:03 PM UTC

yes i am using the 64bit

Translate
Adobe Employee
Jul 6, 2018 3:24 PM UTC

Can you try with 1.8.0_131 and let me know if that works.

Translate
eliash27546545
Level 2
Jul 9, 2018 10:00 AM UTC

no its not working

Translate
Ratna_Kumar
Level 10
Jul 9, 2018 2:27 PM UTC

Hi,

The java home you have given is wrong. You have given JAVA_HOME till jre i.e., inside jdk1.8.0_171 - This is wrong

Please give java_home and path as per the below.

JAVA_HOME: C:\Program Files\Java\jdk1.8.0_171.

path : C:\Program Files\Java\jdk1.8.0_171\bin

Please change the JAVA_HOME from C:\Program Files\Java\jdk1.8.0_171\jre to C:\Program Files\Java\jdk1.8.0_171. It will work.

Hope this helps!!

Thanks,

Ratna Kumar.

Translate
eliash27546545
Level 2
Jul 9, 2018 2:32 PM UTC

i am already doing this,  i sent u the java home version from the output of mvn -version cmd

Translate
smacdonald2008
Level 10
Jul 9, 2018 3:31 PM UTC

In your thread - it shows:

Java home: C:\Program Files\Java\jdk1.8.0_171\jre

Change to JDK - ie

Translate