What's the difference of compile time libraries and run time libraries in java?

后端 未结 4 1286
庸人自扰
庸人自扰 2021-01-17 23:40

And what are the pro\'s con\'s of using either?

I actually saw it in Netbeans under Project Properties > Libraries for Java Applications. We have two tabs, one for c

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-18 00:04

    As others have stated, you are confusing concepts. I think what you are really trying to understand is what Maven refers to as dependency scope. Sometimes you only need a dependency at compile time because you expect it to be provided at runtime, and sometimes you need it at runtime but not compile time.

提交回复
热议问题