你的JPR是什么程序?所有的project都要指定一个mainclass,在project property里设置。如果是jsp、servlet,它们可以单独运行调试。和你的程序代码没关系

解决方案 »

  1.   

    对不起,我说得不太清楚(呵呵,新手),a.java是application,包含在myProject.jpr中
    mainclass的路径在myProject.jpr的property里面已经完全指定清楚,.....a.java,还有别的可能导致这个错误吗?
    不过我学到了一点知识,谢谢。
      

  2.   

    在项目属性里,找到run标签,选择application里面有main class按钮,选择它来指定项目的主类(入口)
      

  3.   

    the mothed of findClass is edited by sun.
    you had better give us the message of error,when runing a.java.
      

  4.   

    Hi Mars_lee,我也是初学者^^
    你可以在Run->Configurations ...里进行设置,把Application的class指向a.class就好乐