如何编译许多java类? [英] How to compile many java class?

查看:59
本文介绍了如何编译许多java类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里有一些源代码。问题是它们彼此分开。我如何编译它们?导致im仅用于编译单个类

i got some source code here. the thing is that they are separated to one another. How can i compile them all? cause im use to compile single class only

推荐答案

多个类都意味着一个项目:)。

More than one class means a project :).

您是否考虑过使用像 Eclipse 这样的IDE?使生活变得更加轻松,无需在控制台上进行编译。

Have you considered using an IDE like Eclipse? Makes life much easier and no need to compile at the console.

您还可以使用Ant javac 任务例如( Ant 是一个不错的构建工具,易于理解和使用)。

You could also use the Ant javac task for example (Ant is a nice build tool, easy to understand and work with).

或者您可以采用简单的方法 javac yourPackage\ * .java 在控制台上(javac有很多可用的选项)。

Or you could resort to a plain javac yourPackage\*.java at the console (javac has lots of options you could use).

这篇关于如何编译许多java类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆