What's the purpose: api.jar + impl.jar + bundle.jar?

前端 未结 4 1603
情歌与酒
情歌与酒 2021-01-12 02:47

I see many Java packages have api, impl and bundle jars (name-api.jar, name-impl.jar, name-bundle.jar). Could someone explain what those mean? Are all three needed by the ap

4条回答
  •  隐瞒了意图╮
    2021-01-12 03:36

    Often :

    • name-api.jar contains only the interface of the API.
    • name-impl.jar provides an implementation of all interfaces in the name-api.jar
    • name-bundle.jar bundles everything with all the needed classes to run a Java application.

提交回复
热议问题