MyEclipse new web project error

Create a new web project in MyEclipse and create a new servlet class (no error is reported when the new class inherits Servlet) The first line of the code is wrong and the following exception is thrown



Because the version of myeclipse 10.1 I use, the WEB project can only support JDK1.7 at most, so the solution is to use the jdk1.6 version that comes with the myeclipse system

Right click on the web project>properties>JAVA Build Path>Libraries>Add Libraries as shown below




Use the same method to remove to remove the jdk1.8 support library (this step does not work)


        It's like this after setting it up.

/*********************************************************************************************************/

There is a pit here that you can use jdk1.8 in eclipse but not in myeclipse10.1


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324576007&siteId=291194637