在command(win98)|cmd(win2000)下使用javac *.java
然后用java 文件名(注意大小写)

解决方案 »

  1.   

    就是一个class文件的.而且你的class要有一个main的哦.
      

  2.   

    there is no means or ways of using java commands to transform .java files into .exe files.but there are some other methods to do that. for example, you can use JBuilder to generate .exe files although those files are still JVM dependent.
    you can use jar command to generate .jar files although it doesn't look as good as it claims.if you want to know more about these things, you can search the forum with your topic and you will find a lot of posts related to that.
      

  3.   

    就是书上所说的编译啊。先执行javac Yourfile.java 然后java Yourfile
       如果你还没有设置环境变量,就直接进入你装JDK的lib里执行/注意你的Yourfile.java也要在里面。(是在DOS下执行的)
      

  4.   

    听老师说MS VJ++可以(我没用过),Borland JB也不行