ITeye博客

如何在cmd命令模式下compile java

danielhjd · 2011-06-29 11:34 · Java · 编程语言 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。