你的代码呢!?
据错误提示好像是没有main函数!!

解决方案 »

  1.   

    代码太长了,不好贴上来
    main函数的代码如下:
    public static void main(String args[])
         {
            new chessdisc();
         }
      

  2.   

    你的chessdisc类是有包吧
    java 包名.chessdisc试一下
      

  3.   

    to:tom2005(快乐着) 
    试过了把包定义语句去掉也不行
      

  4.   

    提交页为
    <? xml version="1.0" ?>
    <! DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <!--student.jsp-->
    <html xmlns="http://www.w3.org/1999/xhtml"><head><title></title>
    </head>
    <body>
    <form  method="post" action="Usersinfo.jsp">
    <p>ID
    <input type="text" name="name"/>
    </p>
    <p>密码
    <input type="password" name="password"/>
    </p>
    <p>
    <input type="submit" value="提交"/>
    </p>
    </form>
    </body>
    </html>
      

  5.   

    加运行路径到classpath中,才能import 正确的类。另外包名不要和类名同名!
      

  6.   

    奇迹出现了,我把chessdisc重新编译一次,什么都没改变
    居然正常了! 
    天阿!   看来我的磁盘出现问题了