java新工程导入eclipse常见问题---Multiple annotations found at this line
2017-07-09 20:21
771 查看
1.
报错信息是:Multiple annotations found at this line:
- java.io.IOException cannot be resolved to a type
- String cannot be resolved to a type
- java.io.IOException cannot be resolved to a type
- String cannot be resolved to a type
- The type java.util.Map cannot be resolved. It is indirectly referenced from
required .class files
- The method getScheme() from the type ServletRequest refers to the missing type
String
- The type java.util.Map cannot be resolved. It is indirectly referenced from
required .class files
2.
报错信息:Multiple annotations found at this line:
- The method getContextPath() from the type HttpServletRequest refers to the
missing type String
- The method getContextPath() from the type HttpServletRequest refers to the
missing type String
3.解决方案:
①.右键工程->Build Path -> Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。
②.然后右击该项目 - Build Path - Add Library, 选择JRE System Library,选择添加的版本,之后一路ok即可。
4.小插曲:我的eclipse里面开始没有找到build path,很是头大,后来自己多次尝试,有两种方法可以找到
①.在右上角有各种模式可以选择,选择java之后,右键该项目就有build path选项了,之后操作同上。
②.在javaEE模式下也可以使用build path,截图不是javaEE模式(别误会)
右键JRE就可以看到build path选项,其他操作同上
报错信息是:Multiple annotations found at this line:
- java.io.IOException cannot be resolved to a type
- String cannot be resolved to a type
- java.io.IOException cannot be resolved to a type
- String cannot be resolved to a type
- The type java.util.Map cannot be resolved. It is indirectly referenced from
required .class files
- The method getScheme() from the type ServletRequest refers to the missing type
String
- The type java.util.Map cannot be resolved. It is indirectly referenced from
required .class files
2.
报错信息:Multiple annotations found at this line:
- The method getContextPath() from the type HttpServletRequest refers to the
missing type String
- The method getContextPath() from the type HttpServletRequest refers to the
missing type String
3.解决方案:
①.右键工程->Build Path -> Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。
②.然后右击该项目 - Build Path - Add Library, 选择JRE System Library,选择添加的版本,之后一路ok即可。
4.小插曲:我的eclipse里面开始没有找到build path,很是头大,后来自己多次尝试,有两种方法可以找到
①.在右上角有各种模式可以选择,选择java之后,右键该项目就有build path选项了,之后操作同上。
②.在javaEE模式下也可以使用build path,截图不是javaEE模式(别误会)
右键JRE就可以看到build path选项,其他操作同上
相关文章推荐
- Eclipse或者STS在导入动态web项目,遇到Multiple annotations found at this line
- eclipse导入项目报错multiple annotations found at this line
- 解决 导入他人做的项目后出现Multiple annotations found at this line 的问题
- 在eclipse的java EE模式中导入别人的项目出现Multiple annotations found at this line
- 问题描述:Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is st
- 如何解决dubbo配置文件中Multiple annotations found at this line问题
- Multiple annotations found at this line: ---关于android string.xml %问题。
- Maven项目pom.xml中Multiple annotations found at this line问题
- Eclipse的JSP页面提示Multiple annotations found at this line或者String cannot be resolved to a type
- Java web 中的会遇到的小问题之一(Multiple annotations found at this line)
- Eclipse的JSP页面提示Multiple annotations found at this line或者String cannot be resolved to a type
- 解决eclipse Multiple annotations found at this line 错误
- Multiple annotations found at this line: ---关于android string.xml %问题
- Eclipse中解决Multiple annotations found at this line错误。
- Multiple annotations found at this line: ---关于android string.xml %问题。
- Eclipse | Maven : Multiple annotations found at this line
- eclipse报错multiple annotations found at this line
- 异常-----web.xml文件报错 Multiple annotations found at this line: - cvc-complex-type.2.4.b: The content of element 'welcome-file-list' is not complete. One of '{"http://java.sun.c
- 解决Eclipse中导入工程后multiple markers at this line eclipse错误
- 解决eclipse Multiple annotations found at this line 错误