solutions that prompt PWC6345 errors when building Web projects with Maven

Source: Internet
Author: User

The following part of this is the online solution, but I did not get resolved with this method "Org.apache.jasper.JasperException:PWC6345:There is a error in invoking Javac. A full JDK (not just JRE) is required

But I tried Jetty 8 today, the same problem, the problem description please see here.

Groping for a half day finally found the reason.

My JDK is installed on the D drive, Java_home also points to the installation directory, and the path to the system is set D:\JDK\bin

However, when installing the JDK, the installer will copy the Java executable file to the system directory of the C drive, which includes Java.exe, while using Java-jar Start.jar to start the Jetty, the Java.exe in the system directory is preferred, so Jetty J The SP parser will not be able to obtain the JDK's installation directory correctly, causing this problem to occur.

Solution, Exit Jetty, search Java.exe in the system directory, delete it and restart Jetty. 】

-----------------------------------I'm a gorgeous split-line-----------------------------------------------------

I continue to study, finally Kung Fu, finally found a low-level error, is the following:

Look at you. This is not the following format of the import:

Click Finish to correct and create a new MAVEN Web project successfully.

solutions that prompt PWC6345 errors when building Web projects with Maven

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.