社区
Eclipse
帖子详情
eclipse中JSONObject cannot be resolved to a type的错误
raiky
2015-07-29 04:09:48
eclipse 中的一个jsp项目,已经导入了json.org包,但是在json定义处出现“JSONObject cannot be resolved to a type”的错误。java1.8.0.45,eclipse mars版本
...全文
1516
2
打赏
收藏
eclipse中JSONObject cannot be resolved to a type的错误
eclipse 中的一个jsp项目,已经导入了json.org包,但是在json定义处出现“JSONObject cannot be resolved to a type”的错误。java1.8.0.45,eclipse mars版本
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Laura2333
2017-11-11
打赏
举报
回复
楼主解决了么,,我也有这个问题。。
raiky
2015-07-30
打赏
举报
回复
up up up up up up up up up up up up up up up up up up up up up up up v
关于“
JSONObject
cannot be
resolved
to a
type
”问题的解决
在用ExtJs4 开发Web时候一定会用到Json数据格式,用Json作Server端和Client端的数据格式很简洁,但我想有很多朋友可能跟我一样会发现import相关包后编译通过,但运行时会报错:“
JSONObject
cannot be
resolved
to a
type
”。 关于JSON的包有三种: 1) json.jar 2 ) org.json.jar 3
JSONObject
cannot be
resolved
to a
type
报错
JSONObject
cannot be
resolved
to a
type
是因为缺少对应的依赖包:org-json.rar 把包添加到libs
中
即可。 包的来源github的项目:https://github.com/stleary/JSON-java
中
的Readme可以找到依赖包的地址。 附:已经下载好的:链接:https://pan.baidu.com/s/1FAFWlDbEXH...
【解决】无法为JSP编译类: Enumeration cannot be
resolved
to a variable
问题: JSP文件:[/Test_request/src/request_demo_03.jsp] 的第 [16] 行发生了一个
错误
Enumeration cannot be
resolved
to a variable 13: request.setCharacterEncoding("GBK"); 14: %> 15: <% 16: Enumeration enum = request.getHeaderNames(); 17: while(en
The
type
XXX cannot be
resolved
It is indirectly referenced
The
type
XXX cannot be
resolved
It is indirectly referenced
The import *** cannot be
resolved
Maven工程
中
编译时经常会提示The import *** cannot be
resolved
。
错误
提示:The import net.sf.json.
JSONObject
cannot be
resolved
。原因分析:Maven项目在编译的过程
中
,缺乏相应的jar包,可能是版本冲突,也可能是jar损坏,或者路径找不到。解决方法:下载相应的jar包,放到正确的路径下,如...
Eclipse
58,454
社区成员
49,450
社区内容
发帖
与我相关
我的任务
Eclipse
Java Eclipse
复制链接
扫一扫
分享
社区描述
Java Eclipse
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章