今天从svn上检下来一个工程,报了N多错误
1 . XML中错误 : The processing instruction target matching "[xX][mM][lL]" is not allowed.
原因居然是第一行写的注释,也就是说第一行为空了,将 <?xml version="1.0" encoding="utf-8"?> 放到第一行,注释可以放第二行,OK了
2. jsp页面错误 : String cannot be resolved to a type
原因是jre错误,打开工程的buildpath 会看到 jre 这项有个叹号,把他干掉,重新选择jre myeclipse : project ---> clean 一下 就OK了