Exception in thread "main" java.lang.NoClassDefFoundError:testHellO/java
敲错了吧? 你的testHellO 最后一个象是大写的O,不是小写的o

解决方案 »

  1.   

    同意nkwj(特特)  java的文件名是区分大小写的
      

  2.   

    where is the file named "testHello.class"?
    the directory which involves the class should be contained in the classpath.
    this error message means your class isn't found.
      

  3.   

    我在e盘下建目录,保存文件e:\123\testHello.java ,先进e: cd 123 ,cd wfl ,java testHello.java 就出现结果Exception int hread  "main"java.lang.NoClassDefFoundError:testHellO/java
    我在任意条件下运行java -version ,javac -h等都正确
      

  4.   

    编译:
        javac testHello.java执行:
        java testHello  (不是: java testHello.java)
      

  5.   

    运行的时候不要带.java后缀。再看看拼写是否出错