当前位置: 技术问答>java相关
jsp --classpath
来源: 互联网 发布时间:2015-07-06
本文导语: org.apache.jasper.JasperException: Unable to compile class for JSPE:workingtomcatworklocalhost_8080%2FStatistics_0002fjsp_0002fedepartment_0002fmaintenance_0002fB_00032_00030_00031_0002ejspB201_jsp_1.java:16: Class statistics.businuess.edepartment.common.B201202Data not foun...
org.apache.jasper.JasperException: Unable to compile class for JSPE:workingtomcatworklocalhost_8080%2FStatistics_0002fjsp_0002fedepartment_0002fmaintenance_0002fB_00032_00030_00031_0002ejspB201_jsp_1.java:16: Class statistics.businuess.edepartment.common.B201202Data not found in import.
import statistics.businuess.edepartment.common.B201202Data;
^
1 error
上面是错误提示,找不到类,怎么设置classpath呀?我已经在系统环境里把classpath指到statistics.businuess.edepartment.common.B201202Data 的上一级目录了。
import statistics.businuess.edepartment.common.B201202Data;
^
1 error
上面是错误提示,找不到类,怎么设置classpath呀?我已经在系统环境里把classpath指到statistics.businuess.edepartment.common.B201202Data 的上一级目录了。
|
不需要设置classpath.
将你的statisticsbusinuessedepartmentcommonB201202Data.class
放到classes下:
classesstatisticsbusinuessedepartmentcommonB201202Data.class
将你的statisticsbusinuessedepartmentcommonB201202Data.class
放到classes下:
classesstatisticsbusinuessedepartmentcommonB201202Data.class