The reasons are as follows.
This problem is caused by inconsistencies between the compiled version of the JDK and the running version of the JRE.
In MyEclipse, the build path of the project is set individually.
There are also problems with the type conversion, because the JDK version of the inconsistency, the download of some code in the small project will appear in the case of compilation does not pass.
Type casts are done individually.
Finally, you need to find a file named Org.eclipse.wst.common.project.facet.core.xml in the setting folder in the project file to modify it.
This file is used to automatically configure an XML file for the relevant parameters when importing a project in a development tool such as myeclipse.
<?xml version= "1.0" encoding= "UTF-8"?><faceted-project> <fixed facet= "Wst.jsdt.web"/> <installed facet= "java" version= "1.5"/> <installed facet= "Jst.web" version= "2.5"/> < Installed facet= "Wst.jsdt.web" version= "1.0"/></faceted-project>
Modify the relevant parameters to be able to debug successfully.
An error occurred in Eclipse Project go to MyEclipse