简体   繁体   中英

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

When I deploy a war file of my web project in Glassfish, I am getting the following error:

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

You need to install a full JDK (Java SDK) including javac compiler tool on the glassfish server machine and executable path should be correctly set. This is required for compiling JSP files to java class files on the fly.

EDIT: Other option could be precompile your JSP files and package the compiled class output in the WAR file. You can google on how to precompile JSPs using a build tool like Apache ANT.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM