cannot be resolved to a type错误
来源:互联网 发布:java ee jdk下载 编辑:程序博客网 时间:2024/05/17 01:51
字面意义是你所说的类不是一个可以使用的类型,也就是没找到类。
使用java bean导入类,有两种方式:
<%@ page import="包名.类名"%>
<jsp:useBean id="bean0" scope="page" class="包名.类名" />
然后,错误的原因是引用错误,解决方案可以试试下面几项:
- project-clean
- 不要使用默认包,刚开始我也用的默认包,导入不成功,所以,不要用默认包
- 为java文件添加主文件,当成application运行一遍(实质是让java文件生成class文件,而导入的是class文件)
就是以上三点,尤其第三点。
0 0
- cannot be resolved to a type错误
- myeclipse:报String cannot be resolved to a type错误
- 错误:String cannot be resolved to a type:
- 出现错误:TextView cannot be resolved to a type
- adt "cannot be resolved to a type"错误解决办法
- xxx cannot be resolved to a type 错误解决方法
- xxx cannot be resolved to a type 错误分析
- xxx cannot be resolved to a type 错误解决方法
- xxx cannot be resolved to a type 错误解决方法
- xxx cannot be resolved to a type 错误解决方法
- xxx cannot be resolved to a type 错误解决方法
- xxx cannot be resolved to a type 错误解决方法
- xxx cannot be resolved to a type 错误解决方法
- InterceptorRef cannot be resolved to a type 错误解决办法
- 错误提示:LocalBroadcastManager cannot be resolved to a type
- xxx cannot be resolved to a type 错误解决方法
- eclipse报HttpServletRequest cannot be resolved to a type错误
- xxx cannot be resolved to a type 错误解决方法
- 设计模式-单例模式
- 【坑】JSP中使用jsp:param传入参数的时候出现中文乱码
- NAT网络下TCP连接建立时可能SYN包被服务器忽略-tcp_tw_recycle
- Android 开源项目android-open-project工具库解析之(一) 依赖注入,图片缓存,网络相关,数据库orm工具包,Android公共库
- java深入解析-第2章 运算符与表达式2
- cannot be resolved to a type错误
- poj 2029 Get Many Persimmon Trees
- 傅里叶变换
- MySQL详解(16)-----------海量数据建议
- iOS开发的经典博客和文章汇总
- 插曲:BigDecimal
- app应用运行中,自动监测手机通讯录的改变,达到同步更新
- 状态管理-Session
- spring 整合MyBatis