Step one: Run cmd

Step two: change directory to ''e:'' where have jave file
c:\Documents and Settings\Administrator>e:
Step three: change directory to where you save the java File
E:\>cd workspace\Algorithm\src\Daniel
E:\workspace\Algorithm\src\Daniel
Highlight: "\" is instead of "/", Here you should use the KEY WORD "cd"

Step four: Use javac to compile xxx.java,and then there is one new file xxx.class that created by
Javac ExhaustExample.java


Step five: use java to compile/run the programming
Java ExhaustExample
本文详细介绍如何使用命令行工具运行Java程序。从打开命令提示符开始,到切换目录找到Java文件位置,再到编译并最终运行Java程序,每一步都有详细的操作指导。
2360

被折叠的 条评论
为什么被折叠?



