`
danielhjd
  • 浏览: 243260 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

如何在cmd命令模式下compile java

    博客分类:
  • Java
阅读更多

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

  • 大小: 17.5 KB
  • 大小: 12.3 KB
  • 大小: 58.5 KB
  • 大小: 14.6 KB
  • 大小: 2.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics