Recently in learning JAVA, because JAVA code written in ECliser, met some errors in ECliser, specially written, hope to help you,
The following three site reproduced by: are for reference only
The Eclipse installation package: https://blog.csdn.net/zichen_ziqi/article/details/73995755
Eclipse installation, Jdk, environment configuration: https://blog.csdn.net/Farewell_w/article/details/104315721
The JDK configuration into Eclipse: https://jingyan.baidu.com/article/020278117db2931bcc9ce518.html
Eclipse USES matters needing attention and some wrong
A mistake a:
If you open the Eclipse pop-up above this error is that you in the process of using the JDK from 1.8 to 1.7, the environment of the Eclipse does not support version 1.7, to change the environment variables;
If you don't want to change the JDK version of environment variables, you just need to operating under the
Open the root directory of the Eclipse modify Eclipse Eclipse configuration file. The Ini add jdk1.8 bin path
Add fields: (JDK file path)
- vm
C:/Program Files/Java/jdk1.8.0 _131/bin/and \
Here I personally recommend you download the JDK default installation path is disk C,
Second, error 2:
Is servlert annotation configuration than the semicolon, or other local path to write wrong popup a hint, this time to check whether your path error,
Error:
Under Caused by prompt our URL naming illegal (invalid URL - patterm)
View about naming the URL for [personalCenter] servlert
@ WebServlet (" personalCenter ")
This way of naming for UTL - the pattern is not allowed, should be in the starting position and project name
@ WebServlet ("/PersonalCenter ")
Three: error, double-click the bin folder of shutdown. The bat,
Is that you open two tomcat's tomcat cannot start tomcat, to conduct a close
This is the problem I met in the Eclipse, hope for your help, more problems please leave a message to consult,