社区
Eclipse
帖子详情
myeclipse报错String cannot be resolved to a type如何解决
麦客子
2016-12-12 09:16:55
...全文
753
2
打赏
收藏
myeclipse报错String cannot be resolved to a type如何解决
[图片]
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
weixin_44765361
2019-05-17
打赏
举报
回复
不错6666666666666666
Defonds
2016-12-12
打赏
举报
回复
右键项目名→Properties→Java Build Path→Libraries→选中JRE System Library[Sun JDK 1.6.0_13]→Edit→选中“Workspace default JRE(Sun JDK 1.6.0_13)”→Finish
MyEclipse
报错
:Multiple annotations found at this line: -
String
cannot be
resolved
to a
type
解决
办法
使用
Myeclipse
新建web项目后,index.jsp文件中
报错
报错
信息如下: Multiple annotations found at this line: -
String
cannot be
resolved
to a
type
- The method getContextPath() from the
type
HttpServletRequest refers to the missing
type
String
这是项目没有配置java library 导致的。
MyEclipse
报错
:Multiple annotations found at this line: -
String
cannot be
resolved
to a
type
解决
方法实测
异常代码如下: Multiple annotations found at this line: -
String
cannot be
resolved
to a
type
- The method getContextPath() from the
type
HttpServletRequest refers to the missing
type
String
解决
办法: 1.右...
Eclipse
报错
:
String
cannot be
resolved
to a
type
#Eclipse
报错
:
String
cannot be
resolved
to a
type
解决
问题
MyEclipse
导入项目后,java 类总是报出很多红叉错误,如
String
cannot be
resolved
to a
type
都出来了,开始以为是
Myeclipse
的事,但重启后发现问题还存在,于是在网上搜,结果说是JDK的问题。
解决
方法: 1.右键项目: properties–java build path- Libraries。 2.找到JRE System Library, 发现
MyEclipse
报错
:
String
cannot be
resolved
to a
type
往
MyEclipse
导入项目后,java 类总是报出n 多红叉,实在是惨不忍睹,
String
cannot be
resolved
to a
type
都出来了, 开始以为是
Myeclipse
的事,但重启后发现问题还存在,于是在网上搜,结果说是JDK的问题
解决
方法: 右键项目: properties–java build path- Libraries 找到JRE System Library,...
MyEclipse
:
String
cannot be
resolved
to a
type
myeclipse
导入一个其他人写的项目后,
Eclipse
58,439
社区成员
49,457
社区内容
发帖
与我相关
我的任务
Eclipse
Java Eclipse
复制链接
扫一扫
分享
社区描述
Java Eclipse
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章