你的.java程序放在哪个文件夹了。
而且程序里的main是什么样的呀

解决方案 »

  1.   

    程序
    // The most basic Java program 
    public class HelloWorld 

    public static void main(String args[]) throws Exception 

    System.out.println("Hello World!"); 

    } 我的JDK装在c:\jdk1.3文件夹中
      

  2.   

    public class Ellsworth {
        public static void main(String[] arguments) {
           String line1 = "The advancement of the arts, from year\n";
           String line2 = "to year, taxes our credulity, and seems\n";
           String line3 = "to presage the arrival of that period\n";
           String line4 = "when human improvement must end.";
           String quote = line1 + line2 + line3 + line4;
           String speaker = "Henry Ellsworth";
           String title = "U.S. Commissioner of Patents";
           String from = "1843 Annual Report of the Patent Office";
           System.out.println('\u0022' + quote + '\u0022');
           System.out.println("\t" + speaker);
           System.out.println("\t" + title);
           System.out.println("\t" + from);
        }
    }
    这是光盘带的
      

  3.   

    在path中我也设了
    c:\jdk1.3\bin 
    所以不是这个问题
      

  4.   

    javac HelloWorld.java
    java  HelloWorld
      

  5.   

    谢谢  takecare
    我用错编译语句了
    再次感谢各位对我的帮助
      

  6.   

    http://expert.csdn.net/Expert/topic/1401/1401227.xml?temp=7.763308E-02