开发者

Java: how to compile a huge behemoth of source code

I've downloaded a big java program in raw sou开发者_JAVA百科rce code. How can I compile it? If I try to compile classes with javac I only get errors.

I guess I have to use eclipse? Can anyone point me to a guide on how to compile such a large project in eclipse?


Edit: As some people pointed out, Eclipse does not use the javac compiler. Oh well, we live to learn. That does not change the rest of my answer.

You have to realize that Eclipse uses javac to compile the source code. So, if you can't do it, chances are Eclipse won't do any good either.

It's highly unlikely that all the files are part of the same package/component. You have to figure out (based on the errors), what is the packages organization and the build order.

However, I would suggest you to look around for a build.xml or a Makefile somewhere close to the top of the tree. If you fidn the former, you could try using ant (automated build tool) with it; if you found the latter, try make on it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜