不使用javac编译Java [英] compiling java without javac

查看:100
本文介绍了不使用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[^].


这篇关于不使用javac编译Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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