如何在cmd命令模式下compile java

Step one: Run cmd


如何在cmd命令模式下compile java
 

Step two: change directory to ''e:'' where have jave file

c:\Documents and Settings\Administrator>e:
如何在cmd命令模式下compile java
 

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"


如何在cmd命令模式下compile java
 

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

Javac ExhaustExample.java


如何在cmd命令模式下compile java
 
如何在cmd命令模式下compile java
 Step five: use java to compile/run the programming

Java ExhaustExample