javac helloworld.javaclasspath包含当前路径“.”了吗?.java文件中的类名和文件名相同吗?是public的吗?main函数的参数、返回值类型都对吗?

解决方案 »

  1.   

    你用的是jdk的什么版本,什么os
      

  2.   

    找了半天没找到编辑:错误是:Exception in thread "main" java.lang.NoClassDefFoundError: helloworld
      

  3.   

    to [yan_here(!◎##@!) ]OS:2003
    JDK:5.0
      

  4.   

    贴源程序出来看看!执行这个程序,贴出错误提示.public class Test{
        public static void main(String args[]){
            System.out.println("Hello World!");
        }
    }
      

  5.   

    public class Test{
        public static void main(String args[]){
            System.out.println("Hello World!");
        }
    }
    没有错误