1.class文件copy.class拷贝到目录:\WEB-INF\classes\com\copy.class2.jsp上面加载:<%@ page import="com.Copy"%> 3.运行 报错:Generated servlet error:
bad class file: E:\workspace\report\WEB-INF\classes\com\Copy.class
class file contains wrong class: Copy
Please remove or make sure it appears in the correct subdirectory of the classpath.
import com.Copy;
bad class file: E:\workspace\report\WEB-INF\classes\com\Copy.class
class file contains wrong class: Copy
Please remove or make sure it appears in the correct subdirectory of the classpath.
import com.Copy;
解决方案 »
- 在JSP页面中实现对SQL Server数据库的备份与恢复
- Bad version number in .class file
- 如何在Hibernate中使用数据库的本地SQL语句
- 高分问一入门级问题。
- 有关j2ee的环境配置的问题,请高手指点!!急!!!!!!!!!!!
- 大虾们谈谈排序问题,从第一次从数据库中得到数据有默认排序方式封装到对象中去,在前台可以有多种排序方法,条件是不能再从数据库中得到
- 给几个XML和JSP结合使用的例子,谢谢。
- 初学EJB,请问各位大哥开发EJB用什么开发工具和容器?
- Struts的中文问题!
- 我想问下关于struts2的namespace属性,我想问的不是直接在地址栏里访问action ,是想用一个jsp的表单跳到上面去,这么写为什么不行?
- 在MyEclipse+tomcat下的项目中,导入xml内容时的错误
- 鼠标移动到该区域,显示悬浮窗口
可为什么
<%@ page import="com.Copy"%> 写的是Copy呢
改为
<%@ page import="com.copy"%>