TimeServlet3.java:2: cannot access com.zbl.beansCharge.Charge
bad class file: D:\Java\LIB\com\zbl\beansCharge\Charge.class
class file contains wrong class: beansCharge.Charge
Please remove or make sure it appears in the correct subdirectory of the classpa
这种错误应该是编译时候用的新的,但是执行的时候调用旧的class的原因造成的
bad class file: D:\Java\LIB\com\zbl\beansCharge\Charge.class
class file contains wrong class: beansCharge.Charge
Please remove or make sure it appears in the correct subdirectory of the classpa
这种错误应该是编译时候用的新的,但是执行的时候调用旧的class的原因造成的
首先确定你的目录必须如下:
com\zbl\beansCharge\Charge.class
然后确定你的classpath是
xxx\
注:xxx是你的com的上级目录 !
------------------------------------------------------
我们还年轻牛奶会有的奶牛也会有的
可天天在 csdn 混这些会有吗 ??
呵呵,看一下你的classpath里有没有你的com所在的路径啊:)
还有你确定com.zbl.beansCharge.Charge是正确的路径?
bad class file: D:\Java\LIB\com\zbl\beansCharge\Charge.class
class file contains wrong class: beansCharge.Charge
Please remove or make sure it appears in the correct subdirectory of the classpa
这种错误应该是编译时候用的新的,但是执行的时候调用旧的class的原因造成的说的很对,谢谢您解决了我的问题。
谢谢大家!