Building vs. Compiling (Java)

后端 未结 8 1020
心在旅途
心在旅途 2020-12-12 08:47

Thinking that the answer to this is pretty obvious but here it goes:

When I am working on a small project for school (in java) I compile it.

On my

相关标签:
8条回答
  • 2020-12-12 09:15

    Actually you are doing the same thing. Ant is build system based on XML configuration files that can do a wide range of tasks related to compiling software. Compiling your java code is just one of those tasks. There are many others such as copying files around, configuring servers, assembling zips and jars, and compiling other languages such as C.

    You don't need Ant to compile your software. You can do it manually as you are doing at school. Another alternative to Ant is a product called Maven. Both Ant and Maven do the same thing , but in quite different ways.

    Lookup Ant and Maven for more details.

    0 讨论(0)
  • 2020-12-12 09:18

    In simple words

    Compilation translates java code (human readable) into bytecode, so the Virtual machine understands it.

    Building puts all the compiled parts together and creates (builds) an executable.

    0 讨论(0)
提交回复
热议问题