java文件名和类(class)的名字要相同,你看看是不是这个问题?有问题再回问

解决方案 »

  1.   

    java -classpath . yourClassname
      

  2.   

    Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found. The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.
      

  3.   

    你先把JAVA的CLASSPATH设对在试试
    上面显示在线程MAIN运行时有异常,Calculator类未定义,有可能是你的文件名与类名不符。
      

  4.   

    Calculator那里的东西啊
    把哪个包import进来试试咯
      

  5.   

    把classpath设置为你的计数器类所在的路径