The error message "PWC6345" is displayed when a web project is created using maven. The error message "mavenpwc6345" is displayed.
The following is an online solution, but I cannot solve it using this method [org. apache. jasper. jasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
However, this problem also occurs when I try Jetty 8 today. Please refer to the Problem description here.
After half a day, I finally found the cause.
My JDK is installed on disk D, and JAVA_HOME also points to the installation directory. The PATH of the system is also set to D: \ JDK \ bin.
However, when JDK is installed, the installer copies the Java executable file to the system directory of drive C, including java.exe, and uses java-jar start. when using jar to start Jetty, the system directory java.exe is used first. In this way, the Jetty JSP parser cannot correctly obtain the JDK installation directory, leading to this problem.
Solution: Exit Jetty, search java.exe in the system directory, delete it, and restart Jetty .]
----------------------------------- I am Lili's split line -----------------------------------------------------
I went on to study it and finally worked hard. Finally, I found a low-level error:
Check whether the following format is imported:
Click finish. The maven web project is created again ~~
You cannot create a web project using sts maven. Click finish to report this error.
Try to reinstall maven and reconfigure the next independent maven. There should be a problem with maven configuration, so we can't see any errors.
When you create a maven project in eclipse32, the following error occurs: an internal error occurs during Creating maven-archetype-webapp.
We recommend that you use the following commands:
1. create a project: mvn archetype: create-DgroupId = com. test. demo-DartifactId = nltc-DarchetypeArtifactId = maven-archetype-webapp
2. mvn eclipse: eclipse-Dwtpversion = 2.0