How do I include external JARs in my own Project JAR

前端 未结 6 1145
无人共我
无人共我 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 07:57

    You have to expand the library jars into the same place where your compiled classes go, then make a jar from that. Depending on how your build process is set up, there may be multiple ways to achieve this. It's not rocket science - a jar is just a zip archive with a META-INF directory at the root level.

提交回复
热议问题