当前位置: 技术问答>java相关
Test javabean 失败,请大虾指教
来源: 互联网 发布时间:2015-09-23
本文导语: 500 Servlet Exception /javabeantext.jsp:1: cannot resolve symbol symbol : class Counter location: class _jsp._javabeantext__jsp Counter count; ^ /javabeantext.jsp:3: cannot resolve symbol symbol : class Counter location: class _jsp._javabean...
500 Servlet Exception
/javabeantext.jsp:1: cannot resolve symbol
symbol : class Counter
location: class _jsp._javabeantext__jsp
Counter count;
^
/javabeantext.jsp:3: cannot resolve symbol
symbol : class Counter
location: class _jsp._javabeantext__jsp
count = (Counter) session.getValue("count");
^
/javabeantext.jsp:5: cannot resolve symbol
symbol : class Counter
location: class _jsp._javabeantext__jsp
count = new Counter();
^
--------------------------------------------------------------------------------
Resin 1.3.b1 (built Mon Jan 29 19:25:51 PST 2001)
谢谢
|
放的路径不对!
|
classpath设置不对,你的电脑是不是改了设置了。
在系统变量中设置classpath,值为.;PathOfClass;
即你要用到的class的路径
在系统变量中设置classpath,值为.;PathOfClass;
即你要用到的class的路径