How do I include external JARs in my own Project JAR

前端 未结 6 1247
无人共我
无人共我 2021-02-20 07:26

I have a Java application and created a JAR file and deployed it.

The App uses external JARs such as the Log4J JAR. When creating my JAR file, how do I include all ext

6条回答
  •  感动是毒
    2021-02-20 08:07

    Keeping JAR separate is better as it is easy to upgrade only the specific JARs to its new versions without touching any other configuration. As of your issue of having to copy each file to same location as of your JAR, you can always use Java CLASSPATH and include any JAR to your application's class path.

提交回复
热议问题