不使用javac编译Java

不使用javac编译Java

问题描述:

我们可以在没有javac的情况下编译Java程序吗?

[edit]删除了虚假的BIG-OriginalGriff [/edit]

Can we compile java program without javac?

[edit]Spurious BIG removed - OriginalGriff[/edit]

在正常情况下不行,

因为javac是Java编译器,所以要求编译足够的程序有点像问如果我先把所有的轮子都从汽车上拆下来,我可以开车去商店吗?"这不是不可能,但是将它们重新放回原处会容易得多和容易得多.
Not under normal circumstances, no.

Since javac is the java comiler, asking to compile programs withough it is a bit like asking "can I drive to the shops if I take all the wheels off my car first?" It''s not impossible, but it would be a lot easier and simpler to put them back on first...


您可以使用javac以外的其他Java编译器,例如吉克斯 [^ ], gcj [ ^ ]或 ^ ].
You can use some other java compiler than javac, for example jikes[^], gcj[^] or ecj[^].