如何编译在命令行多个Java源文件 [英] how to compile multiple java source files in command line
本文介绍了如何编译在命令行多个Java源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新的java命令行建设。在Eclipse中,我只需要编写示例项目源和自动生成。
I am new to java command line building. In eclipse, I just need to write the source in the sample project and the it builds automatically.
我知道
javac的file1.java -----> file1.class
如果file1.java是唯一的源文件,我可以不仅仅是Java文件1运行它。
I know javac file1.java -----> file1.class if file1.java is the only source file, I can just java file1 to run it.
不过,如果我有2个源文件,file1.java file2.java
However, if I have 2 source files, file1.java file2.java
如何建立项目?
非常感谢!
推荐答案
请尝试以下操作:
javac file1.java file2.java
这篇关于如何编译在命令行多个Java源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文