Error when starting Liferay 7 (liferay-portal-7.0-ce-ga1): PWC6345: There is an error in invoking javac.A full JDK (not just JRE) is required

后端 未结 3 945
忘了有多久
忘了有多久 2021-01-06 04:39

I am getting the following error when starting Liferay (liferay-portal-7.0-ce-ga1):

org.apache.jasper.JasperException: PWC6345: There is an error in

3条回答
  •  感动是毒
    2021-01-06 05:37

    In your environment both JRE_HOME and JAVA_HOME are set. In this case Tomcat will prefer the JRE_HOME over the JAVA_HOME. JRE_HOME should point to a JRE while JAVA_HOME should point to a JDK. You could just delete the JRE_HOME environment variable and Tomcat would automatically switch to JAVA_HOME so the isseue would be solved. If you want to keep the JRE_HOME in Windows you can change the setenv.bat by adding the following line as a first line.

    set "JRE_HOME=%JAVA_HOME%"
    

    This change will tell Tomcat that the JRE_HOME should be considered equal to JAVA_HOME and will not change your environmental variables.

提交回复
热议问题