set classpath=%classpath";. ;

解决方案 »

  1.   

    没有写main()函数,在程序开头把下面的加上
    public static void main(String[] args) 
    {
    System.out.println("Hello World!");
    }
      

  2.   

    对,楼上说的对是main()函数的问题,估计是你没加,或者是形式没写对,注意大小写!
      

  3.   

    classpath 里没有 IOTest.class 吧?应该是 classpath 设置的问题。
      

  4.   

    classpath的问题,你的classpath没有写对,到论坛上找找吧